textinput whitespace

This commit is contained in:
John Bender 2011-11-09 11:43:40 -08:00
parent d50aa91e6d
commit 1d4109295d

View file

@ -103,11 +103,11 @@ $.widget( "mobile.textinput", $.mobile.widget, {
if ( $.trim( input.val() ) ) {
// bind to the window load to make sure the height is calculated based on BOTH
// the DOM and CSS
$(window).load(keyup);
$( window ).load( keyup );
// binding to pagechange here ensures that for pages loaded via
// ajax the height is recalculated without user input
$(document).one("pagechange", keyup);
$( document ).one( "pagechange", keyup );
}
}
},