Browse Source
Two issues caused nodes to grow taller each time they scrolled back into view with onlyRenderVisibleElements: 1. InlineParameterPanel initialized contentHeight to 0 and animated from maxHeight:0 to the measured height on every remount. This CSS transition caused the ResizeObserver in BaseNode to see the panel growing and add its height to the node — even though the node already included it. Fix: when mounted with expanded=true, render with maxHeight:"none" (no transition) so the panel appears at full size instantly. 2. The ResizeObserver skip in BaseNode only caught a single observation. The panel settling could fire multiple times during the CSS transition. Fix: use a time-based suppression (300ms) that syncs the tracked height ref without modifying node dimensions for all observations during the settle window. https://claude.ai/code/session_01MvD1n4QeXutgwUpKJuDGHahandoff-20260429-1057
2 changed files with 23 additions and 10 deletions
Loading…
Reference in new issue