From f37f429de92da2521edebebaa8786e0c192431ba Mon Sep 17 00:00:00 2001 From: RonnyChan96 Date: Wed, 18 Jun 2025 11:07:13 +0800 Subject: [PATCH] [elsa] fix(Layout): make graph container responsive to parent size --- framework/elsa/fit-elsa-react/src/flow/jadeFlowEntry.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/elsa/fit-elsa-react/src/flow/jadeFlowEntry.jsx b/framework/elsa/fit-elsa-react/src/flow/jadeFlowEntry.jsx index 698753fc1..fadd69e75 100644 --- a/framework/elsa/fit-elsa-react/src/flow/jadeFlowEntry.jsx +++ b/framework/elsa/fit-elsa-react/src/flow/jadeFlowEntry.jsx @@ -478,8 +478,8 @@ export const JadeFlow = (() => { return graphDom; } else { const newGraphDom = document.createElement('div'); - newGraphDom.style.width = `${parentDom.clientWidth}px`; - newGraphDom.style.height = `${parentDom.clientHeight}px`; + newGraphDom.style.width = `100%`; + newGraphDom.style.height = `100%`; newGraphDom.style.position = 'relative'; newGraphDom.id = 'elsa-graph'; parentDom.appendChild(newGraphDom);