mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-18 14:31:18 +00:00
FIXED: setContentSize: to work when no window is initialized yet
This commit is contained in:
1 parent
c19ed471ca
commit
5bf5388552
1 file changed
+4
-1
+4
-1
@@ -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];
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in new issue
Block a user