diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-12-01 15:05:16 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-12-01 15:05:16 +0000 |
commit | 450d83769f7ebe216fdf6c7b5f514b84566a17d8 (patch) | |
tree | 219ca57271f11c9cbb65bf971ef76a10aa17b0ad /riscos | |
parent | a674848f29db664cca89c3460ad96dd94f9c35d7 (diff) | |
download | netsurf-450d83769f7ebe216fdf6c7b5f514b84566a17d8.tar.gz netsurf-450d83769f7ebe216fdf6c7b5f514b84566a17d8.tar.bz2 |
Fix 1569172
svn path=/trunk/netsurf/; revision=3084
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/window.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) |