ENH: Add further null safeguards to DialogMenu.Resize

This commit is contained in:
bananarama92 2025-04-01 20:05:27 +02:00
parent ed23d2d1bb
commit 8c99dcf09e
No known key found for this signature in database
GPG key ID: E83C7D3B5DA36248

View file

@ -3073,9 +3073,14 @@ class DialogMenu {
/** @type {ScreenFunctions["Resize"]} */
Resize(load) {
const shape = this.shape;
if (!shape) {
return;
}
if (!load) {
// Tasks already handled asynchronically by `Load`
ElementPositionFixed(this.ids.root, ...this.shape);
ElementPositionFixed(this.ids.root, ...shape);
}
}