mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-13 15:46:46 +03:00
fix(UI): Fix position of sub menus (#9485)
Now the submenus are rendered within the overflow menu
This commit is contained in:
committed by
GitHub
parent
12a328779d
commit
0f4e849acf
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user