mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-28 17:32:03 +00:00
ensure attached window is not nil when positioning or instanciate it
This commit is contained in:
1 parent
a1c7aa7790
commit
5c560e82b3
1 file changed
+1
-1
+1
-1
@@ -213,7 +213,7 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
|
||||
if (!_contentViewController)
|
||||
[CPException raise:CPInternalInconsistencyException reason:@"contentViewController must not be nil"];
|
||||
|
||||
if (_needsCompute)
|
||||
if (_needsCompute || !_attachedWindow)
|
||||
{
|
||||
var styleMask = (_behavior == CPPopoverBehaviorTransient) ? CPClosableOnBlurWindowMask : nil;
|
||||
_attachedWindow = [[_CPAttachedWindow alloc] initWithContentRect:CPRectMakeZero() styleMask:styleMask];
|
||||
|
||||
Reference in new issue
Block a user