-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Terminal misalignment on display scaling/DPI change #576
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
Comments
Does slightly (+/- just a few pixels) resizing the window also fix the alignment? |
@d1vanloon I've added a potential fix, could you please test the nightly build once it's there? |
Thanks for following up on this. I tested with the latest nightly build. The behavior remains as previously described with one new change. If, after the DPI change, I move the window, the proper alignment is restored after a brief delay. Could you hook into the |
I'm afraid that wouldn't be much help, because screens' DPI values do not actually get changed - it's the window that gets dragged from one DPI zone into another. |
@Eugeny The scenario in which I initially noted this issue involves a logical screen DPI change. I use the application on my work PC with standard (78 PPI) DPI displays. I often use Remote Desktop to connect to my work PC from my home PC, which has high-DPI displays (e.g. 260 PPI). This results in an apparent display DPI change to running applications, which need to re-scale. The application window never moves, but the display DPI changed. While the fix you've applied would allow me to force the application to re-configure by moving the window, some situations, e.g. when the window is maximized, make this workaround not apparent to the user. |
Is there a potential fix for this behavior? |
Version: 1.0.1
Platform: win32 10.0.17134
Plugins: clickable-links
Overview
If Terminus is running when a display change occurs, such as a remote desktop session from a device with a different display size or DPI, any open terminals may be vertically misaligned. The active prompt, if at the last line of the terminal, could be below or significantly above the lower border of the Terminus window.
Here's an example going from a high-DPI display back to a normal display. Note the gap between the bottom of the terminal and the bottom of the Terminus window:
Normal for comparison:
Here's an example going from normal display to high-DPI display. Note that the last line of the terminal is mostly below the border of the Terminus window:
Opening a new tab or restarting Terminus fixes the alignment issue.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: