1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-02-29 11:23:30 -05:00
parent 7b40f1daff
commit 9b6a17e0a0
8 changed files with 126 additions and 10 deletions

View file

@ -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