From dd1e12ce7911afb9325be1de118ad976cd9f141a Mon Sep 17 00:00:00 2001 From: Peter Pal Hudak Date: Tue, 26 Nov 2024 17:33:38 +0100 Subject: [PATCH] fix(ui-text-area): make focus line follow resized textarea Closes: INSTUI-4380 --- packages/ui-text-area/src/TextArea/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui-text-area/src/TextArea/index.tsx b/packages/ui-text-area/src/TextArea/index.tsx index 2ad8068d99..f4905dd56f 100644 --- a/packages/ui-text-area/src/TextArea/index.tsx +++ b/packages/ui-text-area/src/TextArea/index.tsx @@ -117,8 +117,8 @@ class TextArea extends Component { if (this._highlightRef) { const entryStyle = window.getComputedStyle(entry.target) this._highlightRef.style.transition = 'none' - this._highlightRef.style.width = `calc(${entryStyle.width}px + 2.125rem)` - this._highlightRef.style.height = `calc(${entryStyle.height}px + 2.125rem)` + this._highlightRef.style.width = `calc(${entryStyle.width} + 0.5rem)` + this._highlightRef.style.height = `calc(${entryStyle.height} + 0.5rem)` clearTimeout(this.resizeTimeout) this.resizeTimeout = setTimeout(() => {