Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ const VisualDesigner: React.FC<VisualDesignerProps> = ({ onFocus, onBlur, schema
editorEvent && handleEditorEvent(editorEvent.type, editorEvent.payload);
};

const marqueeStyles = (_) => {
return {
root: {
width: '100%',
height: '100%',
},
};
};
return (
<CacheProvider value={emotionCache}>
<NodeRendererContext.Provider value={nodeContext}>
Expand All @@ -144,9 +152,9 @@ const VisualDesigner: React.FC<VisualDesignerProps> = ({ onFocus, onBlur, schema
{...enableKeyboardCommandAttributes(handleCommand)}
data-testid="visualdesigner-container"
>
<ZoomZone flowZoomRate={flowZoomRate} focusedId={focusedId} updateFlowZoomRate={updateFlowZoomRate}>
<SelectionContext.Provider value={selectionContext}>
<MarqueeSelection selection={selection}>
<SelectionContext.Provider value={selectionContext}>
<MarqueeSelection selection={selection} styles={marqueeStyles}>
<ZoomZone flowZoomRate={flowZoomRate} focusedId={focusedId} updateFlowZoomRate={updateFlowZoomRate}>
<div
className="flow-editor-container"
css={{
Expand Down Expand Up @@ -180,9 +188,9 @@ const VisualDesigner: React.FC<VisualDesignerProps> = ({ onFocus, onBlur, schema
}}
/>
</div>
</MarqueeSelection>
</SelectionContext.Provider>
</ZoomZone>
</ZoomZone>
</MarqueeSelection>
</SelectionContext.Provider>
</div>
</SelfHostContext.Provider>
</NodeRendererContext.Provider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ export const ZoomZone: React.FC<ZoomZoneProps> = ({ flowZoomRate, focusedId, upd
}, [flowZoomRate]);

return (
<div ref={divRef} css={{ overflow: 'scroll', width: '100%', height: '100%' }}>
{children}
{buttonRender()}
<div css={{ width: '100%', height: '100%' }}>
<div ref={divRef} css={{ width: '100%', height: '100%', overflow: 'scroll' }}>
{children}
{buttonRender()}
</div>
</div>
);
};