From 450d83769f7ebe216fdf6c7b5f514b84566a17d8 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Fri, 1 Dec 2006 15:05:16 +0000 Subject: Fix 1569172 svn path=/trunk/netsurf/; revision=3084 --- riscos/window.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'riscos') diff --git a/riscos/window.c b/riscos/window.c index d906174ab..72edcceda 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1804,7 +1804,7 @@ void ro_gui_window_open(wimp_open *open) } /* change extent if necessary */ - if (g->old_width != width || g->old_height != height) { + if (g->old_width != width || g->old_height != height) { if (content) { /* Ctrl-resize of a top-level window scales the content size */ if ((g->old_width > 0) && (g->old_width != width) && (!g->bw->parent) && @@ -1816,6 +1816,11 @@ void ro_gui_window_open(wimp_open *open) g->old_width = width; g->old_height = height; + /* the top-level framed window is a total pain. to get it to maximise to the + * top of the screen we need to fake it having a suitably large extent */ + if (g->bw->children && (g->bw->browser_window_type == BROWSER_WINDOW_NORMAL)) + height = 16384; + if (content && height < content->height * 2 * g->option.scale) height = content->height * 2 * g->option.scale; if (content && width < content->width * 2 * g->option.scale) -- cgit v1.2.3