diff --git a/B06_wf3_ProfileCross/B06_wf3_ProfileCross_UI_Section_View.ts b/B06_wf3_ProfileCross/B06_wf3_ProfileCross_UI_Section_View.ts index 78dadd57..ca309b5b 100644 --- a/B06_wf3_ProfileCross/B06_wf3_ProfileCross_UI_Section_View.ts +++ b/B06_wf3_ProfileCross/B06_wf3_ProfileCross_UI_Section_View.ts @@ -199,6 +199,11 @@ export function createSectionView( panel.append(panelResizer.root); const panelHeight = (): number => { + // 첫 렌더 때 panel은 아직 root에 붙기 전(detached)이라 getComputedStyle이 빈 값을 준다. + // 리사이저가 복원해 둔 인라인 변수부터 읽어야 저장된 높이가 첫 화면부터 반영된다. + // (computed만 읽으면 기본값으로 폴백해 종단도가 잘린 채로 그려진다 — C05 검증 F1) + const inline = Number.parseFloat(panel.style.getPropertyValue("--b06-profile-height")); + if (Number.isFinite(inline) && inline > 0) return inline; const raw = Number.parseFloat(getComputedStyle(panel).getPropertyValue("--b06-profile-height")); return Number.isFinite(raw) && raw > 0 ? raw : BASE_PANEL_HEIGHT; };