File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
packages/devextreme/js/__internal/ui Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ class TextArea<
201201
202202 if ( maxHeight !== undefined ) {
203203 const adjustedMaxHeight = this . _getAdjustedMaxHeight ( maxHeight , heightDifference ) ;
204- const needScroll = this . _isScrollNeeded ( inputHeight , adjustedMaxHeight ) ;
204+ const needScroll = inputHeight > adjustedMaxHeight ;
205205
206206 inputHeight = Math . min ( inputHeight , adjustedMaxHeight ) ;
207207
@@ -222,16 +222,6 @@ class TextArea<
222222 return adjustedMaxHeight ;
223223 }
224224
225- // eslint-disable-next-line class-methods-use-this
226- _isScrollNeeded (
227- inputHeight : number ,
228- adjustedMaxHeight : number ,
229- ) : boolean {
230- const needScroll = inputHeight > adjustedMaxHeight ;
231-
232- return needScroll ;
233- }
234-
235225 _getMaxHeight ( ) : number | undefined {
236226 return this . _getBoundaryHeight ( 'maxHeight' ) ;
237227 }
You can’t perform that action at this time.
0 commit comments