Prevent editing textarea from jumping when toolbar is loaded
authorKaldari <rkaldari@wikimedia.org>
Thu, 24 Aug 2017 00:16:32 +0000 (17:16 -0700)
committerKaldari <rkaldari@wikimedia.org>
Thu, 24 Aug 2017 00:16:32 +0000 (17:16 -0700)
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

index fbc9816..bace9d0 100644 (file)
@@ -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 ) {