Permalink
Browse files

Merge pull request #5691 from jhogervorst/issue-509

Automatic resizing now works for disabled textareas with pre-filled values
  • Loading branch information...
1 parent a25fef9 commit 8ff0c5560b690be9e2163fc211b3ba84101981c8 @jaspermdegroot jaspermdegroot committed Apr 3, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/forms/textinput.js
@@ -136,13 +136,13 @@ $.widget( "mobile.textinput", $.mobile.widget, {
// binding to pagechange here ensures that for pages loaded via
// ajax the height is recalculated without user input
- this._on( $.mobile.document, { "pagechange": "_keyup" });
+ this._on( true, $.mobile.document, { "pagechange": "_keyup" });
// Issue 509: the browser is not providing scrollHeight properly until the styles load
if ( $.trim( input.val() ) ) {
// bind to the window load to make sure the height is calculated based on BOTH
// the DOM and CSS
- this._on( $.mobile.window, {"load": "_keyup"});
+ this._on( true, $.mobile.window, {"load": "_keyup"});
}
}
if ( input.attr( "disabled" ) ) {

0 comments on commit 8ff0c55

Please sign in to comment.