diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-12-09 14:33:53 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-12-09 14:33:53 +0000 |
commit | 4c4b57d5113563b054bcede735b46f18003c98e5 (patch) | |
tree | 02a94647f7de7a1797b316a04f029c20116c84ff /content/handlers/html/html_redraw.c | |
parent | 48d0a48cfcef6aab2f9acd2ae450b386be1e555e (diff) | |
download | netsurf-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.
Diffstat (limited to 'content/handlers/html/html_redraw.c')
-rw-r--r-- | content/handlers/html/html_redraw.c | 1 |
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 || |