test: восстановить защиту перехода редактора (#660)

Предрелизный гейт снова держит лимит монолитного файла, а защитный мутант #648 привязан к новой формуле общего бюджета сцены и панели. Мутант предметно краснит smoke_sections_resize.

Issue: #660
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-26 12:42:03 +03:00
parent f11c2a4c5d
commit 85119fd9a2
3 changed files with 16 additions and 19 deletions
+2 -5
View File
@@ -1344,11 +1344,8 @@ export class HouseplanCard extends LitElement {
}
const inner = this.renderRoot.querySelector('.editorchrome-inner') as HTMLElement | null;
const targetChromeHeight = targetMode === 'view' ? 0 : inner?.scrollHeight || 0;
// The hidden measurement frame deliberately keeps the painted source
// chrome/stage coordinates inline. Measuring stage.top here therefore
// still reports the source header, not the incoming editor chrome. The
// shared controller owns a constant stage + editor-chrome budget, so
// derive the target from that budget and let each RAF move both edges.
// The hidden frame preserves source sizes; keep the stage + chrome budget
// constant so every RAF moves both edges without a final layout jump.
const targetStageHeight = Math.max(1,
from.stageHeight + from.editorChromeHeight - targetChromeHeight);
const targetStageWidth = this._stageEl?.clientWidth || from.stageWidth;