This commit is contained in:
Chocobozzz 2023-02-16 16:41:34 +01:00
parent 1f26c0b846
commit d270d6a042
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 6 deletions

View File

@ -175,10 +175,7 @@ class SettingsButton extends Button {
const el = element.el() as HTMLElement
width = el.offsetWidth
height = el.offsetHeight;
(element as any).width = width;
(element as any).height = height
height = el.offsetHeight
} else {
width = element.offsetWidth
height = element.offsetHeight

View File

@ -238,8 +238,8 @@ class SettingsMenuItem extends MenuItem {
mainMenuEl.style.opacity = '0'
// back button will always take you to main menu, so set dialog sizes
const mainMenuAny = this.mainMenu as any
this.settingsButton.setDialogSize([ mainMenuAny.width, mainMenuAny.height ])
const mainMenuAny = this.mainMenu
this.settingsButton.setDialogSize([ mainMenuAny.width() as number, mainMenuAny.height() as number ])
// animation not triggered without timeout (some async stuff ?!?)
setTimeout(() => {