mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-27 18:38:49 +00:00
FIXED: Crash when using setContentSize: on a popover that is not shown.
This commit is contained in:
1 parent
86d186e279
commit
2a88e598ff
1 file changed
+1
-1
+1
-1
@@ -150,7 +150,7 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
|
||||
*/
|
||||
- (void)setContentSize:(CGSize)aSize
|
||||
{
|
||||
if (!_popoverWindow)
|
||||
if (!_popoverWindow || ![self isShown])
|
||||
[[_contentViewController view] setFrameSize:aSize];
|
||||
else
|
||||
[_popoverWindow updateFrameWithSize:aSize];
|
||||
|
||||
Reference in new issue
Block a user