diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-28 08:54:55 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-28 08:54:55 +0000 |
commit | aa3fc46df54bf3f6591c8b127b93001a80c03118 (patch) | |
tree | a7578241121b5d79bacb4c5943987bea7545a34c /cocoa/FormSelectMenu.m | |
parent | a1f1138479a276b78be2866bd6a29ee6eb019fb6 (diff) | |
download | netsurf-aa3fc46df54bf3f6591c8b127b93001a80c03118.tar.gz netsurf-aa3fc46df54bf3f6591c8b127b93001a80c03118.tar.bz2 |
Implemented resolution independence fot the TreeView and HistoryView and moved the coordinate transform function to their own header.
svn path=/trunk/netsurf/; revision=11513
Diffstat (limited to 'cocoa/FormSelectMenu.m')
-rw-r--r-- | cocoa/FormSelectMenu.m | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cocoa/FormSelectMenu.m b/cocoa/FormSelectMenu.m index dba919e23..822655839 100644 --- a/cocoa/FormSelectMenu.m +++ b/cocoa/FormSelectMenu.m @@ -19,7 +19,7 @@ #import "FormSelectMenu.h" #import "render/form.h" -#import "render/box.h" +#import "cocoa/coordinates.h" @interface FormSelectMenu () @@ -78,12 +78,7 @@ cell = [[NSPopUpButtonCell alloc] initTextCell: @"" pullsDown: YES]; [cell setMenu: menu]; - struct rect r; - box_bounds( control->box, &r ); - - - const NSRect rect = NSMakeRect( browser->scale * r.x0, browser->scale * r.y0, - browser->scale * (r.x1 - r.x0), browser->scale * (r.y1 - r.y0) ); + const NSRect rect = cocoa_rect_for_box( browser, control->box ); [cell attachPopUpWithFrame: rect inView: view]; [cell performClickWithFrame: rect inView: view]; |