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-04 13:19:10 -05:00
parent 5973359f39
commit 4c2a7ed02d
23 changed files with 228 additions and 129 deletions

View file

@ -1,4 +1,4 @@
define(['historyManager', 'focusManager', 'performanceManager', 'browser', 'paper-dialog', 'scale-up-animation', 'fade-out-animation', 'fade-in-animation', 'css!./paperdialoghelper.css'], function (historyManager, focusManager, performanceManager, browser) {
define(['historyManager', 'focusManager', 'performanceManager', 'browser', 'layoutManager', 'paper-dialog', 'scale-up-animation', 'fade-out-animation', 'fade-in-animation', 'css!./paperdialoghelper.css'], function (historyManager, focusManager, performanceManager, browser, layoutManager) {
function paperDialogHashHandler(dlg, hash, resolve) {
@ -55,6 +55,13 @@
dlg.addEventListener('iron-overlay-closed', onDialogClosed);
dlg.open();
// It's not being positioned properly in firefox
if (!dlg.classList.contains('fixedSize')) {
setTimeout(function () {
dlg.refit();
}, 100);
}
if (dlg.getAttribute('data-lockscroll') == 'true' && !document.body.classList.contains('noScroll')) {
document.body.classList.add('noScroll');
removeScrollLockOnClose = true;
@ -162,8 +169,10 @@
dlg.classList.add('scrollY');
// TODO: Don't hide for mouse?
dlg.classList.add('hiddenScroll');
if (layoutManager.tv || layoutManager.mobile) {
// Need scrollbars for mouse use
dlg.classList.add('hiddenScroll');
}
if (options.removeOnClose) {
dlg.setAttribute('data-removeonclose', 'true');