Esanders has uploaded a new change for review.
https://gerrit.wikimedia.org/r/189341
Change subject: Fix text input auto-height calculation
......................................................................
Fix text input auto-height calculation
Use class based unhiding instead of changing the
style attribute.
Follows up Ibf7c99aa4.
Change-Id: I5548b86752eee002c8642cb8069c8a3bdf3c93a6
---
M src/widgets/TextInputWidget.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/41/189341/1
diff --git a/src/widgets/TextInputWidget.js b/src/widgets/TextInputWidget.js
index 91572b8..5f15602 100644
--- a/src/widgets/TextInputWidget.js
+++ b/src/widgets/TextInputWidget.js
@@ -240,7 +240,7 @@
// Set inline height property to 0 to measure scroll
height
.css( 'height', 0 );
- this.$clone[ 0 ].style.display = 'block';
+ this.$clone.removeClass( 'oo-ui-element-hidden' );
this.valCache = this.$input.val();
--
To view, visit https://gerrit.wikimedia.org/r/189341
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5548b86752eee002c8642cb8069c8a3bdf3c93a6
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits