Skip to content

Commit 361a3c3

Browse files
author
marker dao ®
committed
refactor(textArea): Remove extra method
1 parent 680abe4 commit 361a3c3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/devextreme/js/__internal/ui/m_text_area.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)