mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-24 15:35:52 +00:00
Fixed: targetRect was assigned too late when displaying a popoverWindow. This var can be used before ordering the popoverWindow
This commit is contained in:
1 parent
0f5dd99167
commit
e49a9f1f06
1 file changed
+1
-1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user