aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-01-04 17:08:47 +1100
committernyamatongwe <unknown>2013-01-04 17:08:47 +1100
commit6920cc3ee7b074f30090d508070ab17c3255ee9c (patch)
tree6299a0e1d34effb9663a47b6c95bfe02ee83aa6e
parent3adae229e15780b916b440b3978a8905c8bb7c73 (diff)
downloadscintilla-mirror-6920cc3ee7b074f30090d508070ab17c3255ee9c.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