From 07fb8a93b1c00e65a25b1816a25a34f568bbe596 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Thu, 27 Jan 2011 08:02:36 +0000 Subject: [PATCH] Scaling position of select popup. svn path=/trunk/netsurf/; revision=11505 --- cocoa/FormSelectMenu.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cocoa/FormSelectMenu.m b/cocoa/FormSelectMenu.m index 62cb91220..dba919e23 100644 --- a/cocoa/FormSelectMenu.m +++ b/cocoa/FormSelectMenu.m @@ -81,8 +81,12 @@ struct rect r; box_bounds( control->box, &r ); - [cell performClickWithFrame: NSMakeRect( r.x0, r.y0, r.x1 - r.x0, r.y1 - r.y0 ) - inView: view]; + + const NSRect rect = NSMakeRect( browser->scale * r.x0, browser->scale * r.y0, + browser->scale * (r.x1 - r.x0), browser->scale * (r.y1 - r.y0) ); + + [cell attachPopUpWithFrame: rect inView: view]; + [cell performClickWithFrame: rect inView: view]; } - (void) itemSelected: (id) sender;