From 81948322f62ff3f75e167ed79c17f744d703e37b Mon Sep 17 00:00:00 2001 From: Kaldari Date: Wed, 23 Aug 2017 17:16:32 -0700 Subject: [PATCH] Prevent editing textarea from jumping when toolbar is loaded If you're using the "classic" editor (not the WikiEditor editor), the editing textarea jumps down when the toolbar loads, which can take a few seconds on a slow connection. This can cause editors to accidently click the toolbar instead of the editing textarea and accidently insert markup into the article that they didn't mean to. This rule has been on English Wikipedia's Common.css since 2007. Change-Id: Ie4ac15c95554608c838ef0e112924fc6381a6f66 --- resources/src/mediawiki.legacy/shared.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/src/mediawiki.legacy/shared.css b/resources/src/mediawiki.legacy/shared.css index fbc9816d5d..bace9d0262 100644 --- a/resources/src/mediawiki.legacy/shared.css +++ b/resources/src/mediawiki.legacy/shared.css @@ -105,6 +105,11 @@ span.comment { clear: both; } +/* Prevent editing textarea from jumping when toolbar is loaded */ +#toolbar { + height: 22px; +} + /* Edit font preference */ /* TODO: for 'default' on non-textareas we could compute the default font of textarea in the client */ .mw-editfont-default:not( textarea ) { -- 2.20.1