From 43b6ac96e995ea9b6eaddc289fdcc4f39dd75bbe Mon Sep 17 00:00:00 2001 From: Devon7925 Date: Sat, 18 Jan 2025 15:25:52 -0700 Subject: [PATCH] fix left panel resize issue fixes #101 --- ui.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui.ts b/ui.ts index fbe5141..39b9f28 100644 --- a/ui.ts +++ b/ui.ts @@ -144,6 +144,7 @@ function prepareForResize() { if (codeEditor.style.display == "none") continue; codeEditor.style.overflow = "hidden"; + codeEditor.style.height = "100%"; } workspaceDiv.style.overflow = "hidden"; leftContainer.style.overflowX = "hidden"; @@ -166,7 +167,13 @@ function finishResizing() { let parentNode = codeEditor.parentNode; if (codeEditor.clientHeight < 30 && parentNode instanceof HTMLElement) parentNode.style.overflow = "hidden"; - codeEditor.style.overflow = "visible"; + + if (codeEditor.clientHeight == 0) { + codeEditor.style.height = "0px"; + codeEditor.style.overflow = "hidden"; + } else { + codeEditor.style.overflow = "visible"; + } } reflectionTab.style.maxWidth = assertGetElementById("rightContainerDiv").clientWidth + "px";