diff options
-rw-r--r-- | render/html_redraw.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c index 3165e1d38..e604e28d8 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -705,14 +705,10 @@ bool html_redraw_box(struct box *box, CSS_OVERFLOW_SCROLL || css_computed_overflow(box->style) == CSS_OVERFLOW_AUTO)) { - - has_x_scroll = false; - has_y_scroll = false; - + has_x_scroll = box_hscrollbar_present(box); - has_y_scroll = box_vscrollbar_present(box); - + if (!box_handle_scrollbars(current_redraw_browser,box, has_x_scroll, has_y_scroll)) return false; |