aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/assets/player/shared/settings/settings-menu-button.ts5
-rw-r--r--client/src/assets/player/shared/settings/settings-menu-item.ts4
2 files changed, 3 insertions, 6 deletions
diff --git a/client/src/assets/player/shared/settings/settings-menu-button.ts b/client/src/assets/player/shared/settings/settings-menu-button.ts
index 64866aab2..4cf29866b 100644
--- a/client/src/assets/player/shared/settings/settings-menu-button.ts
+++ b/client/src/assets/player/shared/settings/settings-menu-button.ts
@@ -175,10 +175,7 @@ class SettingsButton extends Button {
175 const el = element.el() as HTMLElement 175 const el = element.el() as HTMLElement
176 176
177 width = el.offsetWidth 177 width = el.offsetWidth
178 height = el.offsetHeight; 178 height = el.offsetHeight
179
180 (element as any).width = width;
181 (element as any).height = height
182 } else { 179 } else {
183 width = element.offsetWidth 180 width = element.offsetWidth
184 height = element.offsetHeight 181 height = element.offsetHeight
diff --git a/client/src/assets/player/shared/settings/settings-menu-item.ts b/client/src/assets/player/shared/settings/settings-menu-item.ts
index 07ff0f2a8..288e3b233 100644
--- a/client/src/assets/player/shared/settings/settings-menu-item.ts
+++ b/client/src/assets/player/shared/settings/settings-menu-item.ts
@@ -238,8 +238,8 @@ class SettingsMenuItem extends MenuItem {
238 mainMenuEl.style.opacity = '0' 238 mainMenuEl.style.opacity = '0'
239 239
240 // back button will always take you to main menu, so set dialog sizes 240 // back button will always take you to main menu, so set dialog sizes
241 const mainMenuAny = this.mainMenu as any 241 const mainMenuAny = this.mainMenu
242 this.settingsButton.setDialogSize([ mainMenuAny.width, mainMenuAny.height ]) 242 this.settingsButton.setDialogSize([ mainMenuAny.width() as number, mainMenuAny.height() as number ])
243 243
244 // animation not triggered without timeout (some async stuff ?!?) 244 // animation not triggered without timeout (some async stuff ?!?)
245 setTimeout(() => { 245 setTimeout(() => {