aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-01-04 17:08:47 +1100
committernyamatongwe <devnull@localhost>2013-01-04 17:08:47 +1100
commit0f1f4f27b8f4c70f514121206b024014deaef132 (patch)
treeb3122753cdcb341338b81a6cf9f3b017d18c61e0
parent362e2eac8ef6646b06103b5463543a0c2182f696 (diff)
downloadscintilla-mirror-0f1f4f27b8f4c70f514121206b024014deaef132.tar.gz
Fix positioning of autompletion lists on retina displays.
From Mike Lischke at Oracle.
-rw-r--r--cocoa/PlatCocoa.mm3
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