Permalink
Browse files

Autogrow: No longer mind to page show set height during create

Also remove the animation during the initial create height setting
  • Loading branch information...
arschmitz committed Jul 23, 2015
1 parent 8cbf649 commit 00746a1b05cba831100eb2da3e64c7d7ea087f2c
Showing with 4 additions and 6 deletions.
  1. +4 −6 js/widgets/forms/autogrow.js
@@ -55,10 +55,8 @@ return $.widget( "mobile.textinput", $.mobile.textinput, {
// Attach to the various you-have-become-visible notifications that the
// various framework elements emit.
// TODO: Remove all but the updatelayout handler once #6426 is fixed.
this._handleShow( "create" );
this._on( true, this.document, {
// TODO: Move to non-deprecated event
"pageshow": "_handleShow",
"popupbeforeposition": "_handleShow",
"updatelayout": "_handleShow",
"panelopen": "_handleShow"
@@ -73,10 +71,10 @@ return $.widget( "mobile.textinput", $.mobile.textinput, {
// content has become visible, but the collapsible is still collapsed, so
// the autogrow textarea is still not visible.
_handleShow: function( event ) {
if ( $.contains( event.target, this.element[ 0 ] ) &&
this.element.is( ":visible" ) ) {
if ( event === "create" || ( $.contains( event.target, this.element[ 0 ] ) &&
this.element.is( ":visible" ) ) ) {
if ( event.type !== "popupbeforeposition" ) {
if ( event !== "create" && event.type !== "popupbeforeposition" ) {
this._addClass( "ui-textinput-autogrow-resize" );
this.element
.animationComplete(

0 comments on commit 00746a1

Please sign in to comment.