From 8e22c1d7131fcb3a93235852f60a14bd7c26d902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=ED=83=9C=ED=9B=88?= Date: Thu, 25 Jun 2026 17:18:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EB=A6=AC?= =?UTF-8?q?=EC=82=AC=EC=9D=B4=EC=A0=80=20=EB=93=9C=EB=9E=98=EA=B7=B8=20?= =?UTF-8?q?=EC=8B=9C=20=EC=9D=B4=EC=9B=83=20=EC=BB=AC=EB=9F=BC=20=EC=98=81?= =?UTF-8?q?=ED=96=A5=20=EC=97=86=EC=9D=B4=20=EB=8B=A8=EB=B0=A9=ED=96=A5(?= =?UTF-8?q?=EB=93=9C=EB=9E=98=EA=B7=B8=20=EB=B0=A9=ED=96=A5)=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=EB=A7=8C=20=EB=84=88=EB=B9=84=EA=B0=80=20=EB=B0=94?= =?UTF-8?q?=EB=80=8C=EB=8F=84=EB=A1=9D=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/List/ListFactory.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/views/List/ListFactory.ts b/src/views/List/ListFactory.ts index c7ae6b0..65ad759 100644 --- a/src/views/List/ListFactory.ts +++ b/src/views/List/ListFactory.ts @@ -709,11 +709,19 @@ export function createListView(container: HTMLElement, config: ListViewConfig) { let startX = 0; let startWidth = 0; + let startTableWidth = 0; const onMouseMove = (e: MouseEvent) => { const dx = e.clientX - startX; const newWidth = Math.max(50, startWidth + dx); + + // Update the width of the dragged column th.style.width = `${newWidth}px`; + + // Dynamically adjust the total table width by the delta change, + // preventing neighboring columns from shrinking or expanding. + const deltaW = newWidth - startWidth; + tableElement.style.width = `${startTableWidth + deltaW}px`; }; const onMouseUp = () => { @@ -729,6 +737,9 @@ export function createListView(container: HTMLElement, config: ListViewConfig) { startX = e.clientX; startWidth = th.offsetWidth; + + // Capture the initial physical width of the entire table + startTableWidth = tableElement.offsetWidth; resizer.classList.add('resizing'); document.addEventListener('mousemove', onMouseMove);