Fixed: targetRect was assigned too late when displaying a popoverWindow. This var can be used before ordering the popoverWindow

This commit is contained in:
Alexandre Wilhelm committed 2015-01-06 15:28:14 -08:00
1 parent 0f5dd99167
commit e49a9f1f06
1 file changed
+1 -1
+1 -1
View File
@@ -370,6 +370,7 @@ var _CPPopoverWindow_shouldClose_ = 1 << 4,
_targetView = positioningView;
}
_targetRect = aRect;
[self makeKeyAndOrderFront:nil];
/*
@@ -383,7 +384,6 @@ var _CPPopoverWindow_shouldClose_ = 1 << 4,
[[_targetView window] addChildWindow:self ordered:CPWindowAbove];
_targetWindow = targetWindow;
_targetRect = aRect;
if (!wasVisible)
[self _trapNextMouseDown];