remember window size only in active editor
This commit is contained in:
parent
a52c6ed9d7
commit
6f2883c6d3
|
@ -524,7 +524,11 @@ function isWindowMaximized() {
|
|||
}
|
||||
|
||||
function rememberWindowSize() {
|
||||
if (!isWindowMaximized() && prefs.get('openEditInWindow')) {
|
||||
if (
|
||||
document.visibilityState === 'visible' &&
|
||||
prefs.get('openEditInWindow') &&
|
||||
!isWindowMaximized()
|
||||
) {
|
||||
prefs.set('windowPosition', {
|
||||
left: window.screenX,
|
||||
top: window.screenY,
|
||||
|
|
Loading…
Reference in New Issue
Block a user