Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions js/jquery.mobile.forms.textinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
clientHeight = input[ 0 ].clientHeight;

if ( clientHeight < scrollHeight ) {
input.css({
height: (scrollHeight + extraLineHeight)
});
input.height(scrollHeight + extraLineHeight);
}
},
keyupTimeout;
Expand All @@ -103,8 +101,10 @@ $.widget( "mobile.textinput", $.mobile.widget, {

// Issue 509: the browser is not giving scrollHeight properly until after the document
// is ready.
if ($.trim(input.text())) {
$(keyup);
if ( $.trim( input.val() ) ) {
$(function() {
input.keyup()
});
}
}
},
Expand Down