FIXED: Popover not showing in correct platform window.

This was fixed a month ago, but additional later commits added a dumb test preventing this to work correctly
This commit is contained in:
Antoine Mercadal committed 2014-07-30 11:31:54 -07:00
1 parent b6d76eb84e
commit 01b631aea6
1 file changed
+1 -3
+1 -3
View File
@@ -246,9 +246,7 @@ Set the behavior of the CPPopover. It can be:
if (!_popoverWindow)
_popoverWindow = [[_CPPopoverWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:[self _styleMaskForBehavior]];
if (_positioningView != positioningView)
[_popoverWindow setPlatformWindow:[[positioningView window] platformWindow]];
[_popoverWindow setPlatformWindow:[[positioningView window] platformWindow]];
[_popoverWindow setAppearance:_appearance];
[_popoverWindow setAnimates:_animates];
[_popoverWindow setDelegate:self];