You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
committed
fix(layout): keep DOM measurements out of saved node sizes (#14758)
Keep the size a user requested separate from the size the browser
rendered. DOM measurements now stay local instead of being saved or
synced, so a resized node keeps its width after collapse, save, and
reload.
- Save the requested node position and size. Use measured content size
only when rendering the current view.
- Send resize position and size through the node's layout attachment as
one update.
- Bind Vue node dimensions to layout state instead of copying them into
CSS from several call sites.
- Replace the minimap data-source hierarchy and factory with one
graph-backed data source that reads rendered geometry.
- Cover resize persistence, collapsed reloads, subgraph layout updates,
and touch panning in browser tests.
- Browser fonts, locale, and custom node content must not change saved
workflow geometry.
- Collapsing a node must not overwrite its expanded size.
- Rendering, slots, selection bounds, and the minimap should agree on
the node's rendered dimensions.
---------
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: github-actions <github-actions@github.com>
0 commit comments