question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Window restores with different bounds each restart

See original GitHub issue

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.74.2
  • OS Version: Windows 10.0.19044 Build 19044

Steps to Reproduce:

  1. Put VS Code in a non-maximized size mode.
  2. Resize the main window so that its right and bottom border is near the right and bottom edge of the screen. The top and left edge should have some space between the screen’s edges.
  3. Repeatedly open and close the app.
  4. Watch the window slowly increase its size towards the right and bottom edge.
  5. Watch it grow even outside of the screen.

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
tulipan-itcommented, Dec 29, 2022

It’s probably related somehow. But they talk about multiple screens and different scaling. I have only one and keep it at 100%.

0reactions
bpaserocommented, Dec 30, 2022

Marking as upstream: we get different window bounds after setting bounds, so the window moves on the screen. I am not aware of a way for us to fix this and https://github.com/electron/electron/issues/27651 sounds very much related.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Changing a window's restore position using ...
The private RestoreWindowBoundsIfNecessary() method puts the window back, it will run when the window is restored. From what I can tell, the ...
Read more >
How to reset the window position of an application - Super User
One way is you can right click the taskbar in XP and choose cascade or tile, though it will do it for all...
Read more >
Some Programs Are Displayed Off the Screen
Start the program. · Right-click the program on the taskbar, and then click Maximize. · Right-click a blank area of the taskbar, and...
Read more >
Preserve window size when restoring a maximized window
Now in order to do this, first check x + width, and y + height to make sure its not outside bounds of...
Read more >
How To Fix Random Restarts on Windows 10/11 | SoftwareKeep
Many different things can cause your computer randomly restarting issue. These range from simple issues like outdated drivers to more complex problems like ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found