diff options
author | nyamatongwe <devnull@localhost> | 2013-01-04 17:08:47 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-01-04 17:08:47 +1100 |
commit | 0f1f4f27b8f4c70f514121206b024014deaef132 (patch) | |
tree | b3122753cdcb341338b81a6cf9f3b017d18c61e0 | |
parent | 362e2eac8ef6646b06103b5463543a0c2182f696 (diff) | |
download | scintilla-mirror-0f1f4f27b8f4c70f514121206b024014deaef132.tar.gz |
Fix positioning of autompletion lists on retina displays.
From Mike Lischke at Oracle.
-rw-r--r-- | cocoa/PlatCocoa.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index a4584528f..a3d5ac17b 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -1109,8 +1109,7 @@ PRectangle Window::GetPosition() // NSView NSView* view = reinterpret_cast<NSView*>(idWin); win = [view window]; - rect = [view bounds]; - rect = [view convertRectToBase: rect]; + rect = [view convertRect: [view bounds] toView: nil]; rect.origin = [win convertBaseToScreen:rect.origin]; } else |