From 4131cf1d6fde6b80848a4af12ec543fa981069cf Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 15 Aug 2016 15:02:37 +0800 Subject: [PATCH] MDL-54687 messages: Fix height bug with auto-rows textarea Firefox reserves height for the horizontal scroll bars in a textarea. This mucks up the height calculations for this element. Prevent it with overflow-x. --- theme/bootstrapbase/less/moodle/forms.less | 4 ++++ theme/bootstrapbase/style/moodle.css | 3 +++ 2 files changed, 7 insertions(+) diff --git a/theme/bootstrapbase/less/moodle/forms.less b/theme/bootstrapbase/less/moodle/forms.less index 3087c476dd9..de3515953c5 100644 --- a/theme/bootstrapbase/less/moodle/forms.less +++ b/theme/bootstrapbase/less/moodle/forms.less @@ -524,3 +524,7 @@ input[size] { padding: 0.5em; font-size: large; } + +textarea[data-auto-rows] { + overflow-x: hidden; +} diff --git a/theme/bootstrapbase/style/moodle.css b/theme/bootstrapbase/style/moodle.css index 5671bf2d682..51af3a0bc0f 100644 --- a/theme/bootstrapbase/style/moodle.css +++ b/theme/bootstrapbase/style/moodle.css @@ -14155,6 +14155,9 @@ input[size] { padding: 0.5em; font-size: large; } +textarea[data-auto-rows] { + overflow-x: hidden; +} body.modal-open { overflow: hidden; }