@@ -93,7 +93,9 @@ define( [
93
93
} ,
94
94
95
95
_updateHeight : function ( ) {
96
-
96
+ var paddingTop , paddingBottom , paddingHeight , scrollHeight , clientHeight ,
97
+ borderTop , borderBottom , borderHeight , height ,
98
+ scrollTop = this . window . scrollTop ( ) ;
97
99
this . keyupTimeout = 0 ;
98
100
99
101
// IE8 textareas have the onpage property - others do not
@@ -105,13 +107,12 @@ define( [
105
107
} ) ;
106
108
}
107
109
108
- var paddingTop , paddingBottom , paddingHeight ,
109
- scrollHeight = this . element [ 0 ] . scrollHeight ,
110
- clientHeight = this . element [ 0 ] . clientHeight ,
111
- borderTop = parseFloat ( this . element . css ( "border-top-width" ) ) ,
112
- borderBottom = parseFloat ( this . element . css ( "border-bottom-width" ) ) ,
113
- borderHeight = borderTop + borderBottom ,
114
- height = scrollHeight + borderHeight + 15 ;
110
+ scrollHeight = this . element [ 0 ] . scrollHeight ;
111
+ clientHeight = this . element [ 0 ] . clientHeight ;
112
+ borderTop = parseFloat ( this . element . css ( "border-top-width" ) ) ;
113
+ borderBottom = parseFloat ( this . element . css ( "border-bottom-width" ) ) ;
114
+ borderHeight = borderTop + borderBottom ;
115
+ height = scrollHeight + borderHeight + 15 ;
115
116
116
117
// Issue 6179: Padding is not included in scrollHeight and
117
118
// clientHeight by Firefox if no scrollbar is visible. Because
@@ -132,6 +133,8 @@ define( [
132
133
"min-height" : "" ,
133
134
"max-height" : ""
134
135
} ) ;
136
+
137
+ this . window . scrollTop ( scrollTop ) ;
135
138
} ,
136
139
137
140
refresh : function ( ) {
0 commit comments