Stop Beat Prompt height growth on reload
This commit is contained in:
@@ -527,10 +527,7 @@ function setupNode(node) {
|
|||||||
getMinHeight: () => 180,
|
getMinHeight: () => 180,
|
||||||
hideOnZoom: false,
|
hideOnZoom: false,
|
||||||
});
|
});
|
||||||
widget.computeLayoutSize = () => ({
|
widget.computeLayoutSize = () => ({ minHeight: DEFAULT_H, minWidth: DEFAULT_W });
|
||||||
minHeight: Math.max(220, node.size?.[1] || DEFAULT_H),
|
|
||||||
minWidth: Math.max(MIN_W, node.size?.[0] || DEFAULT_W),
|
|
||||||
});
|
|
||||||
applyAdaptiveCanvasOnly(widget);
|
applyAdaptiveCanvasOnly(widget);
|
||||||
|
|
||||||
node.size[0] = Math.max(node.size[0] || 0, DEFAULT_W);
|
node.size[0] = Math.max(node.size[0] || 0, DEFAULT_W);
|
||||||
|
|||||||
Reference in New Issue
Block a user