fix(UI): Fix position of sub menus (#9485)

Now the submenus are rendered within the overflow menu
This commit is contained in:
Álvaro Velad Galván
2025-12-10 13:28:40 +01:00
committed by GitHub
parent 12a328779d
commit 0f4e849acf
25 changed files with 344 additions and 90 deletions
+9
View File
@@ -141,6 +141,15 @@ shaka.ui.AdStatisticsButton = class extends shaka.ui.Element {
this.adManager, shaka.ads.Utils.AD_STARTED, () => {
shaka.ui.Utils.setDisplay(this.button_, true);
});
if (this.isSubMenu) {
this.eventManager.listen(this.controls, 'submenuopen', () => {
shaka.ui.Utils.setDisplay(this.button_, false);
});
this.eventManager.listen(this.controls, 'submenuclose', () => {
shaka.ui.Utils.setDisplay(this.button_, true);
});
}
}
/** @private */