FIXED: Bug that could open a child window in the wrong platform window

Previously, addChildWindow:ordered: did not set not the child window's platform window. This could result to open them in the wrong browser window. This patch makes sure to set the parent's platform window as the child window's platform window.
This commit is contained in:
Antoine Mercadal committed 2013-08-15 13:33:50 -07:00
1 parent f1077719fb
commit 1e7dd0dc59
1 file changed
+1
+1
View File
@@ -2558,6 +2558,7 @@ CPTexturedBackgroundWindowMask
[CPException raise:CPInvalidArgumentException
reason:_cmd + @" unrecognized ordering mode " + orderingMode];
[childWindow setPlatformWindow:[self platformWindow]];
[childWindow setParentWindow:self];
[childWindow _setChildOrdering:orderingMode];
[childWindow setLevel:[self level]];