From d5a1b7bc2b51038a281159bdabcb872766c0f9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 10 Nov 2020 12:20:17 +0100 Subject: [PATCH] ReplyWidget: Ensure scrollbar doesn't appear in source mode Even though the field is supposed to resize itself to match the text inside, vertical scrollbar would sometimes appear when the user has zoomed in. Some calculation probably handles fractions of pixels incorrectly (might be a bug in OOUI or a browser bug). Since this field has no limit on max rows, we can just hide the scrollbar. This can't be fixed in OOUI itself, since its autosize text fields usually have a limit to how tall they are allowed to grow before a scrollbar is used. Bug: T267609 Change-Id: Id36ed417c4678e469a6c05715404e330064c2017 --- modules/dt.ui.ReplyWidget.less | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/dt.ui.ReplyWidget.less b/modules/dt.ui.ReplyWidget.less index e9b90dcee..2982535b5 100644 --- a/modules/dt.ui.ReplyWidget.less +++ b/modules/dt.ui.ReplyWidget.less @@ -5,6 +5,7 @@ > .oo-ui-textInputWidget { max-width: none; + overflow-y: hidden; .oo-ui-inputWidget-input { line-height: 1.5em;