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:
@@ -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); },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user