update shared dialogs
This commit is contained in:
parent
1190972d6c
commit
6e6017eeaf
16 changed files with 208 additions and 125 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['historyManager', 'focusManager', 'browser', 'layoutManager', 'inputManager', 'css!./dialoghelper.css'], function (historyManager, focusManager, browser, layoutManager, inputManager) {
|
||||
define(['historyManager', 'focusManager', 'browser', 'layoutManager', 'inputManager', 'scrollHelper', 'css!./dialoghelper.css', 'scrollStyles'], function (historyManager, focusManager, browser, layoutManager, inputManager, scrollHelper) {
|
||||
|
||||
function dialogHashHandler(dlg, hash, resolve) {
|
||||
|
||||
|
@ -380,11 +380,12 @@
|
|||
|
||||
dlg.classList.add('dialog');
|
||||
|
||||
dlg.classList.add('scrollY');
|
||||
if (options.scrollY !== false) {
|
||||
dlg.classList.add('smoothScrollY');
|
||||
|
||||
if (layoutManager.tv || layoutManager.mobile) {
|
||||
// Need scrollbars for mouse use
|
||||
dlg.classList.add('hiddenScroll');
|
||||
if (layoutManager.tv) {
|
||||
scrollHelper.centerFocus.on(dlg, false);
|
||||
}
|
||||
}
|
||||
|
||||
if (options.removeOnClose) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue