You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The left and top offsets of chrome.windows.update() are relative to the display's origin. On a system with multiple screens, the value of screen.left and screen.top must be added to the value specified in chrome.windows.update().
resizeDialog(true) does not add the offset, leading to a window spanning multiple monitors.
Credits to @davidf-woaf-net for reporting the issue and proposing the
solution.
Note that `screen.left` and `screen.top` are non-standard properties.
They are undefined on Chrome, and trying to use it would result in
attempting to call `windows.update` with `NaN` as a value. This is
OK, if I ever decide to port the extension to Chrome, then this
serves as a reminder that I need to test the extension on multi-display
setups and adjust the code as necessary.
The left and top offsets of chrome.windows.update() are relative to the display's origin. On a system with multiple screens, the value of screen.left and screen.top must be added to the value specified in chrome.windows.update().
resizeDialog(true) does not add the offset, leading to a window spanning multiple monitors.
The text was updated successfully, but these errors were encountered: