Tell the page when the chat changes height

The Scheduler sizes the views above the panel from what the chat leaves, so a chat that resizes
silently grew off the bottom and took its own composer with it.
This commit is contained in:
Gmer4Lfe
2026-08-09 12:33:29 -04:00
parent bb5daad3cc
commit 1370a29233
2 changed files with 20 additions and 1 deletions
+3
View File
@@ -2400,6 +2400,9 @@ if (document.getElementById('vv-sched-ai-chat')) {
return false;
},
onTurn: () => { vvAiFixArm(); requestAnimationFrame(vvFitRight); },
// Expanding changes how much of the panel is left for the views above it. Without this the
// chat grows downward past the end of the panel instead of upward into it.
onResize: () => requestAnimationFrame(vvFitRight),
onOffer: (kind, yes) => { if (kind === 'fix') vvAiFixAnswer(yes); },
});
}