update components
This commit is contained in:
parent
5973359f39
commit
4c2a7ed02d
23 changed files with 228 additions and 129 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue