JGonera has uploaded a new change for review.
https://gerrit.wikimedia.org/r/74063
Change subject: A hack for the editor on Android 2.x
......................................................................
A hack for the editor on Android 2.x
Makes the cursor and scrolling behavior more predictable.
Change-Id: I66e59dc64508b48907c41d194fc0a97223b488cf
---
M javascripts/modules/editor/EditorOverlay.js
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/63/74063/1
diff --git a/javascripts/modules/editor/EditorOverlay.js
b/javascripts/modules/editor/EditorOverlay.js
index 845beb4..5f2f39a 100644
--- a/javascripts/modules/editor/EditorOverlay.js
+++ b/javascripts/modules/editor/EditorOverlay.js
@@ -87,6 +87,12 @@
} );
}
+ // FIXME: line-height other than 1 causes weird
behavior in textareas on
+ // Android 2.x, remove this if we don't want to support
editor there
+ if ( /Android 2/.test( navigator.userAgent ) ) {
+ this.$content.css( 'line-height', 1 );
+ }
+
this._loadContent();
// log section edit attempt
self.log( 'attempt' );
--
To view, visit https://gerrit.wikimedia.org/r/74063
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I66e59dc64508b48907c41d194fc0a97223b488cf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: JGonera <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits