mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Remove unneeded css as height will suffice. Trigger the inputs keyup. Im not sure calling $(keyup) called the function on the element.
This commit is contained in:
parent
8fb55a8afa
commit
6b5ca6311a
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
@ -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()
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue