From 9db7b1e54b1a15d3f804f6fe39f0e23149f2039d Mon Sep 17 00:00:00 2001 From: grainsoft Date: Sun, 24 May 2026 02:56:19 +0300 Subject: [PATCH] updates --- src/widgets/auto-expand/AutoExpand.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/widgets/auto-expand/AutoExpand.js b/src/widgets/auto-expand/AutoExpand.js index df93c5a..4dcf222 100644 --- a/src/widgets/auto-expand/AutoExpand.js +++ b/src/widgets/auto-expand/AutoExpand.js @@ -15,17 +15,20 @@ export class AutoExpand { this.target.rows = 1; this.target.style.overflowY = 'hidden'; + this.target.style.resize = 'none'; - this.target.dxOn('input.autoExpand', _ => this.updateRows() ) + this.updateSize(); + + this.target.dxOn('input.autoExpand', _ => this.updateSize() ); } /** - * AutoExpand, Update Rows + * AutoExpand, Update Size */ - updateRows() { + updateSize() { const style = window.getComputedStyle(this.target); - + this.target.style.height = 'auto'; this.target.style.height = `${this.target.scrollHeight + (parseFloat(style.borderTopWidth) || 0) + (parseFloat(style.borderBottomWidth) || 0)}px`; }