From 8d6aefc4d6e9e582a1e684ed5f9d7578bb81161a Mon Sep 17 00:00:00 2001 From: chinnamatli kusumalatha Date: Fri, 10 Jan 2025 11:59:45 +0530 Subject: [PATCH 1/2] fixing vertical overflow to the panel --- packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx b/packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx index c76695df516..f1ed2727e40 100644 --- a/packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx +++ b/packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx @@ -48,9 +48,10 @@ export function OverlaysPanel({ availableHeight }: OverlaysPanelProps) { const yPos = bounds.y; if (currentHeight + yPos >= availableHeight) { overlayPanelContainer.current.style.height = availableHeight - BOTTOM_MARGIN + "px"; - overlayPanelContainer.current.style.overflowY = "scroll"; + overlayPanelContainer.current.style.overflowY = "auto"; } else { - overlayPanelContainer.current.style.overflowY = "visible"; + overlayPanelContainer.current.style.overflowY = "hidden"; + overlayPanelContainer.current.style.height = "auto"; } } }); From a25b01e7962a0b37bf25ba672c5c68241f451188 Mon Sep 17 00:00:00 2001 From: chinnamatli kusumalatha Date: Mon, 13 Jan 2025 11:30:07 +0530 Subject: [PATCH 2/2] fixing height issue when proprty is close to overlay panel --- packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx b/packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx index f1ed2727e40..7bcda322d9f 100644 --- a/packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx +++ b/packages/dmn-editor/src/overlaysPanel/OverlaysPanel.tsx @@ -49,7 +49,7 @@ export function OverlaysPanel({ availableHeight }: OverlaysPanelProps) { if (currentHeight + yPos >= availableHeight) { overlayPanelContainer.current.style.height = availableHeight - BOTTOM_MARGIN + "px"; overlayPanelContainer.current.style.overflowY = "auto"; - } else { + } else if (overlayPanelContainer.current.style.height != "auto") { overlayPanelContainer.current.style.overflowY = "hidden"; overlayPanelContainer.current.style.height = "auto"; }