FIXED: setContentSize: to work when no window is initialized yet

This commit is contained in:
Antoine Mercadal committed 2014-04-30 17:05:51 -07:00
1 parent c19ed471ca
commit 5bf5388552
1 file changed
+4 -1
+4 -1
View File
@@ -150,7 +150,10 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
*/
- (void)setContentSize:(CGSize)aSize
{
[_popoverWindow updateFrameWithSize:aSize];
if (!_popoverWindow)
[[_contentViewController view] setFrameSize:aSize];
else
[_popoverWindow updateFrameWithSize:aSize];
}
/*!