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

Exiting from Full Screen mode incorrectly restores window size #351

Open
alabuzhev opened this Issue Jan 17, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@alabuzhev
Copy link

alabuzhev commented Jan 17, 2019

Version 10.0.17763.253

Start cmd.exe
Enter command mode 80, 25
Go 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:

  • Entering full screen increases the buffer size (which is fine)
  • Exiting full screen doesn't change the buffer size (which is also fine)
  • The console window now has to display scrollbars (also fine), but since it's outer size is the same it has to display them at the expense of console viewport area.

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.

@boomsya

This comment has been minimized.

Copy link

boomsya commented Jan 18, 2019

the same bug in Far 3 when exit from full screen mode
win 10 x64 1709.16299.309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment