-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Exiting from Full Screen mode incorrectly restores window size #351
Copy link
Copy link
Open
Labels
Area-InteractionInteracting with the vintage console window (as opposed to driving via API or hooks)Interacting with the vintage console window (as opposed to driving via API or hooks)Help WantedWe encourage anyone to jump in on these.We encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Priority-3A description (P3)A description (P3)Product-ConhostFor issues in the Console codebaseFor issues in the Console codebasegood first issueThis is a fix that might be easier for someone to do as a first contributionThis is a fix that might be easier for someone to do as a first contribution
Milestone
Metadata
Metadata
Assignees
Labels
Area-InteractionInteracting with the vintage console window (as opposed to driving via API or hooks)Interacting with the vintage console window (as opposed to driving via API or hooks)Help WantedWe encourage anyone to jump in on these.We encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Priority-3A description (P3)A description (P3)Product-ConhostFor issues in the Console codebaseFor issues in the Console codebasegood first issueThis is a fix that might be easier for someone to do as a first contributionThis is a fix that might be easier for someone to do as a first contribution
Version 10.0.17763.253
Start cmd.exe
Enter command
mode 80, 25Go to window menu - Properties - Layout
Check that Window Size is 80 x 25 indeed
Close Properties
Press Alt+Enter twice to enter and exit full screen
Go to window menu - Properties - Layout
Check Window Size again. This time it's not 80 x 25, but 78 x 24.
This happens because exiting full screen restores the original outer window size (with the title, borders etc., say, 802 x 532px), however:
This causes an issue in an app that automatically syncs buffer size with window size - after every switch to full screen and back window size gets smaller, the app reduces the buffer size accordingly, eventually going down to nothing.
Also, even if an app doesn't do anything like that, reducing the viewport size can make some (potentially important) information invisible.
Please consider preserving the console viewport size and increasing the outer window size to make room for scrollbars.