mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
ENH: Add further null
safeguards to DialogMenu.Resize
This commit is contained in:
parent
ed23d2d1bb
commit
8c99dcf09e
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue