Fix lint
This commit is contained in:
parent
1f26c0b846
commit
d270d6a042
|
@ -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
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue