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
|
const el = element.el() as HTMLElement
|
||||||
|
|
||||||
width = el.offsetWidth
|
width = el.offsetWidth
|
||||||
height = el.offsetHeight;
|
height = el.offsetHeight
|
||||||
|
|
||||||
(element as any).width = width;
|
|
||||||
(element as any).height = height
|
|
||||||
} else {
|
} else {
|
||||||
width = element.offsetWidth
|
width = element.offsetWidth
|
||||||
height = element.offsetHeight
|
height = element.offsetHeight
|
||||||
|
|
|
@ -238,8 +238,8 @@ class SettingsMenuItem extends MenuItem {
|
||||||
mainMenuEl.style.opacity = '0'
|
mainMenuEl.style.opacity = '0'
|
||||||
|
|
||||||
// back button will always take you to main menu, so set dialog sizes
|
// back button will always take you to main menu, so set dialog sizes
|
||||||
const mainMenuAny = this.mainMenu as any
|
const mainMenuAny = this.mainMenu
|
||||||
this.settingsButton.setDialogSize([ mainMenuAny.width, mainMenuAny.height ])
|
this.settingsButton.setDialogSize([ mainMenuAny.width() as number, mainMenuAny.height() as number ])
|
||||||
|
|
||||||
// animation not triggered without timeout (some async stuff ?!?)
|
// animation not triggered without timeout (some async stuff ?!?)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
Loading…
Reference in New Issue