remember window size only in active editor

This commit is contained in:
tophf 2017-08-27 19:41:09 +03:00
parent a52c6ed9d7
commit 6f2883c6d3

View File

@ -524,7 +524,11 @@ function isWindowMaximized() {
} }
function rememberWindowSize() { function rememberWindowSize() {
if (!isWindowMaximized() && prefs.get('openEditInWindow')) { if (
document.visibilityState === 'visible' &&
prefs.get('openEditInWindow') &&
!isWindowMaximized()
) {
prefs.set('windowPosition', { prefs.set('windowPosition', {
left: window.screenX, left: window.screenX,
top: window.screenY, top: window.screenY,