mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update recording defaults
This commit is contained in:
parent
14bce4eaf7
commit
f8eb80550a
10 changed files with 51 additions and 30 deletions
|
@ -114,7 +114,7 @@
|
|||
dialogOptions.entryAnimation = options.entryAnimation;
|
||||
dialogOptions.exitAnimation = options.exitAnimation;
|
||||
dialogOptions.entryAnimationDuration = options.entryAnimationDuration || 140;
|
||||
dialogOptions.exitAnimationDuration = options.exitAnimationDuration || 180;
|
||||
dialogOptions.exitAnimationDuration = options.exitAnimationDuration || 160;
|
||||
dialogOptions.autoFocus = false;
|
||||
}
|
||||
|
||||
|
@ -301,13 +301,22 @@
|
|||
|
||||
dialogHelper.open(dlg);
|
||||
|
||||
var pos = options.positionTo && dialogOptions.size !== 'fullscreen' ? getPosition(options, dlg) : null;
|
||||
// Make sure the above open has completed so that we can query offsetWidth and offsetHeight
|
||||
// This was needed in safari, but in chrome this is causing the dialog to change position while animating
|
||||
var setPositions = function () {
|
||||
var pos = options.positionTo && dialogOptions.size !== 'fullscreen' ? getPosition(options, dlg) : null;
|
||||
|
||||
if (pos) {
|
||||
dlg.style.position = 'fixed';
|
||||
dlg.style.margin = 0;
|
||||
dlg.style.left = pos.left + 'px';
|
||||
dlg.style.top = pos.top + 'px';
|
||||
if (pos) {
|
||||
dlg.style.position = 'fixed';
|
||||
dlg.style.margin = 0;
|
||||
dlg.style.left = pos.left + 'px';
|
||||
dlg.style.top = pos.top + 'px';
|
||||
}
|
||||
};
|
||||
if (browser.safari) {
|
||||
setTimeout(setPositions, 0);
|
||||
} else {
|
||||
setPositions();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue