summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index 326601254..8ae68d377 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1619,10 +1619,10 @@ void browser_window_update(struct browser_window *bw, bool scroll_to_top)
browser_window_set_scroll(bw, x, y);
}
- rect.x0 = 0;
- rect.y0 = 0;
- rect.x1 = bw->width;
- rect.y1 = bw->height;
+ rect.x0 = scrollbar_get_offset(bw->scroll_x);
+ rect.y0 = scrollbar_get_offset(bw->scroll_y);
+ rect.x1 = rect.x0 + bw->width;
+ rect.y1 = rect.y0 + bw->height;
browser_window_update_box(bw, &rect);
}