summaryrefslogtreecommitdiff
path: root/riscos/window.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-09-04 10:13:56 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-09-04 10:13:56 +0000
commit5d53f3784caac97a43f4a5792eeed73db81f902f (patch)
tree01dcb303e6075d3dcee6dbbc0c1e54dc0276675b /riscos/window.c
parent923d9f13659db97d1942e7daffdf9df3877ece96 (diff)
downloadnetsurf-5d53f3784caac97a43f4a5792eeed73db81f902f.tar.gz
netsurf-5d53f3784caac97a43f4a5792eeed73db81f902f.tar.bz2
Fix window furniture issues at small dimensions.
svn path=/trunk/netsurf/; revision=2910
Diffstat (limited to 'riscos/window.c')
-rw-r--r--riscos/window.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/riscos/window.c b/riscos/window.c
index 2fd369665..b07ff0390 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -1414,8 +1414,10 @@ void ro_gui_window_open(struct gui_window *g, wimp_open *open)
if (state.flags & wimp_WINDOW_HSCROLL)
fheight += size;
if ((!no_hscroll) &&
- ((fheight > size) && ((g->bw->scrolling == SCROLLING_YES) ||
- (content && width < content->width * 2 * g->option.scale)))) {
+ ((fheight > size) ||
+ (g->bw->browser_window_type == BROWSER_WINDOW_NORMAL)) &&
+ ((content && width < content->width * 2 * g->option.scale) ||
+ (g->bw->scrolling == SCROLLING_YES))) {
if (!(state.flags & wimp_WINDOW_HSCROLL)) {
height -= size;
state.visible.y0 += size;
@@ -1436,7 +1438,7 @@ void ro_gui_window_open(struct gui_window *g, wimp_open *open)
}
state.flags &= ~wimp_WINDOW_HSCROLL;
}
-
+
/* vscroll */
size = ro_get_vscroll_width(NULL);
if (g->bw->border)
@@ -1445,8 +1447,10 @@ void ro_gui_window_open(struct gui_window *g, wimp_open *open)
if (state.flags & wimp_WINDOW_VSCROLL)
fwidth += size;
if ((!no_vscroll) &&
- ((fwidth >= size) && ((g->bw->scrolling == SCROLLING_YES) ||
- (content && height < content->height * 2 * g->option.scale)))) {
+ ((fwidth > size) ||
+ (g->bw->browser_window_type == BROWSER_WINDOW_NORMAL)) &&
+ ((content && height < content->height * 2 * g->option.scale) ||
+ (g->bw->scrolling == SCROLLING_YES))) {
if (!(state.flags & wimp_WINDOW_VSCROLL)) {
width -= size;
state.visible.x1 -= size;