From f787b22594c43e1ff786dfe23054aa634547993a Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 25 Oct 2014 13:29:10 +0100 Subject: Add a TODO, don't break kiosk window --- amiga/gui.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index 2a0fd2242..e8c4b2f7f 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3690,8 +3690,10 @@ gui_window_create(struct browser_window *bw, return NULL; } -// GetAttr(WINDOW_VertObject, g->shared->objects[OID_MAIN], -// (ULONG *)&g->shared->objects[OID_VSCROLL]); + if(nsoption_bool(kiosk_mode) == true) { + GetAttr(WINDOW_VertObject, g->shared->objects[OID_MAIN], + (ULONG *)&g->shared->objects[OID_VSCROLL]); + } RefreshSetGadgetAttrs((struct Gadget *)(APTR)g->shared->objects[OID_VSCROLL], g->shared->win, NULL, @@ -3830,6 +3832,9 @@ static ULONG ami_get_border_gadget_balance(struct gui_window_2 *gwin, ULONG *siz ULONG available_width; float gad1percent; + /**TODO: This is getting the width of the vertical scroll bar, which is not + necessarily the same as the width of the size gadget that we are + supposed to be accounting for. */ GetAttr(GA_Width, gwin->objects[OID_VSCROLL], (ULONG *)&sz); available_width = gwin->win->Width - scrn->WBorLeft - sz; -- cgit v1.2.3