From d275e75453015352d5b9387eaf5078e1ba5e0ea2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 28 Nov 2019 11:06:02 +0100 Subject: Focus player on video loading --- client/src/assets/player/videojs-components/settings-menu-item.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/src/assets/player/videojs-components') diff --git a/client/src/assets/player/videojs-components/settings-menu-item.ts b/client/src/assets/player/videojs-components/settings-menu-item.ts index 85172a18c..84d394c0e 100644 --- a/client/src/assets/player/videojs-components/settings-menu-item.ts +++ b/client/src/assets/player/videojs-components/settings-menu-item.ts @@ -329,6 +329,8 @@ class SettingsMenuItem extends MenuItem { } setMargin () { + if (!this.size) return + const [ width ] = this.size this.settingsSubMenuEl_.style.marginRight = `-${width}px` -- cgit v1.2.3