From 4c4b57d5113563b054bcede735b46f18003c98e5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 9 Dec 2019 14:33:53 +0000 Subject: HTML redraw: Never draw box scrollbars for textareas. The scrollbars for textareas are rendered by the widget. This stops us from putting broken scrollbars over the top of the textarea's own scrollbars. --- content/handlers/html/html_redraw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/content/handlers/html/html_redraw.c b/content/handlers/html/html_redraw.c index 0d2f6b523..a60f44e28 100644 --- a/content/handlers/html/html_redraw.c +++ b/content/handlers/html/html_redraw.c @@ -1841,6 +1841,7 @@ bool html_redraw_box(const html_content *html, struct box *box, /* scrollbars */ if (((box->style && box->type != BOX_BR && box->type != BOX_TABLE && box->type != BOX_INLINE && + (box->gadget == NULL || box->gadget->type != GADGET_TEXTAREA) && (overflow_x == CSS_OVERFLOW_SCROLL || overflow_x == CSS_OVERFLOW_AUTO || overflow_y == CSS_OVERFLOW_SCROLL || -- cgit v1.2.3