Scaling position of select popup.

svn path=/trunk/netsurf/; revision=11505
This commit is contained in:
Sven Weidauer 2011-01-27 08:02:36 +00:00
parent 14404769cc
commit 07fb8a93b1

View File

@ -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;