From 6920cc3ee7b074f30090d508070ab17c3255ee9c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 4 Jan 2013 17:08:47 +1100 Subject: Fix positioning of autompletion lists on retina displays. From Mike Lischke at Oracle. --- cocoa/PlatCocoa.mm | 3 +-- 1 file changed, 1 insertion(+), 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(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 -- cgit v1.2.3