mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
7b40f1daff
commit
9b6a17e0a0
8 changed files with 126 additions and 10 deletions
|
@ -49,6 +49,13 @@
|
|||
return pos;
|
||||
}
|
||||
|
||||
function addCenterFocus(dlg) {
|
||||
|
||||
require(['scrollHelper'], function (scrollHelper) {
|
||||
scrollHelper.centerFocus.on(dlg.querySelector('.actionSheetScroller'), false);
|
||||
});
|
||||
}
|
||||
|
||||
function show(options) {
|
||||
|
||||
// items
|
||||
|
@ -154,6 +161,10 @@
|
|||
dlg.style.top = pos.top + 'px';
|
||||
}
|
||||
|
||||
if (layoutManager.tv) {
|
||||
addCenterFocus(dlg);
|
||||
}
|
||||
|
||||
document.body.appendChild(dlg);
|
||||
|
||||
// Seeing an issue in some non-chrome browsers where this is requiring a double click
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue