Merge pull request #2455 from didierkorthoudt/CPColorPanel-platform-window

Fixed: CPColorPanel always opens in main platform window.
This commit is contained in:
Alexandre Wilhelm committed 2016-05-25 11:36:28 -07:00
commit 9273c9ee10
1 file changed
+2
+2
View File
@@ -255,6 +255,8 @@ var _CPColorWellDidBecomeExclusiveNotification = @"_CPColorWellDidBecomeExclusiv
var colorPanel = [CPColorPanel sharedColorPanel];
[colorPanel setPlatformWindow:[[self window] platformWindow]];
[colorPanel setColor:_color];
[colorPanel orderFront:self];
}