Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setBounds does not work on chrome windows #56

Closed
swaipdev opened this issue Feb 5, 2021 · 1 comment
Closed

setBounds does not work on chrome windows #56

swaipdev opened this issue Feb 5, 2021 · 1 comment

Comments

@swaipdev
Copy link

swaipdev commented Feb 5, 2021

The bug happens when you try to setBounds of a MAXIMIZED Chrome window.
The setBounds operation does not work, meaning you cannot resize the window, position it where you want, etc.
If you try setBounds on another window (ex., Powerpoint window) it works even if the window's maximized.
The bug CANNOT be reproduced if the Chrome window is not maximized.

To Reproduce
chrome_win is a pointer to a MAXIMIZED Chrome window

chrome_win.setBounds({x: 365, y: 0, width: 600, height: 720})

Expected behavior
The windows should be resized accordingly to parameters.

Details:

  • Operating System: Windows 10
  • node-window-manager version: 2.2.4
  • Last known working node-window-manager version: N/A
@lonestarx1
Copy link

Hi @swaipdev ,
Try doing chrome_win.restore() before performing chrome_win.setBounds()
This seems to solve the issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants