Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: Resize charts in grid layout (#311)

Myles Scolnickfea21dd9358c
diff --git a/frontend/src/editor/renderers/grid-layout/grid-layout.tsx b/frontend/src/editor/renderers/grid-layout/grid-layout.tsx
index d1631e87ba..1be508c355 100644
--- a/frontend/src/editor/renderers/grid-layout/grid-layout.tsx
+++ b/frontend/src/editor/renderers/grid-layout/grid-layout.tsx
@@ -111,6 +111,10 @@ const GridLayoutRenderer: React.FC<Props> = ({
onDragStop={() => {
dragProps.onDragStop();
}}
+ onResizeStop={() => {
+ // Dispatch a resize event so widgets know to resize
+ window.dispatchEvent(new Event("resize"));
+ }}
// When in read mode or locked, disable dragging and resizing
isDraggable={enableInteractions}
isDroppable={enableInteractions}