summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-12-09 14:33:53 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-12-09 14:33:53 +0000
commit4c4b57d5113563b054bcede735b46f18003c98e5 (patch)
tree02a94647f7de7a1797b316a04f029c20116c84ff
parent48d0a48cfcef6aab2f9acd2ae450b386be1e555e (diff)
downloadnetsurf-4c4b57d5113563b054bcede735b46f18003c98e5.tar.gz
netsurf-4c4b57d5113563b054bcede735b46f18003c98e5.tar.bz2
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.
-rw-r--r--content/handlers/html/html_redraw.c1
1 files changed, 1 insertions, 0 deletions
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 ||