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
High DPI scaling and font issues in Version 1.2.1335 #5098
Comments
|
For extra information?
|
|
Thanks -- I was able to reproduce this on my Windows VM as well. Looks like it reproduces only when using a dark theme, and it does reproduce for any UI scaling other than 100%. |
|
Interesting--never thought to change themes! Yes, I switched to a light theme and the horizontal scroll bar in the data view window looked normal! Still had the issue of scrolling ~11 lines at a time in the editor with different themes, but good to know I can scroll through data a bit easier now! Thanks. (I've attached a ~1min long video of the editor scrolling at different font sizes and zooms if you'd like to see what that looks like) |
|
Thanks! That's helpful. I can confirm something similar -- I have my Windows mouse settings to scroll 3 lines at a time, but I see ~9 lines scrolled on every 'tick' of the mouse scrollwheel. I only see this in the Source pane; not in the Console pane. Since the problems here seem to be fairly well-understood I'm going to try and target this for v1.3. |
|
Implementation notes:
https://doc.qt.io/qt-5/qwidget.html#moveEvent
https://doc.qt.io/qt-5/qguiapplication.html#screenAt
|
|
This can be solved much more simply: just monitor |
|
Customer asking whether this can be changed to a user configurable value? |

I have a laptop with a High-DPI screen (3840x2160 13in. display) and I'm experiencing a couple of issues that I believe are related to how RStudio deals with High-DPI scaling. I have the Windows "fix scaling" turned on, as well as having my applications zoomed in to 300%, the recommended for my display.
The first issue has to do with scrolling in the editor and console. I have my mouse settings currently set to scroll 3 lines at a time, but changing this setting has no effect on how fast I can scroll in the console. RStudio scrolls ~11 lines at a time, which is almost a full window in the editor. This makes navigating my scripts very challenging and frustrating. Zooming in or out on RStudio (from the View dropdown menu) does not change this, but changing the font size does. When I lower the font size, it scrolls more lines, and if I increase the font size it scrolls far fewer lines. Important to note also is that this slightly different when viewing dataframe or tables in the view window. It scrolls 3-4 lines at a time, like I would expect, but this does not change when I change my system settings, so it seems to be some fixed setting there as well. I suspect this is somehow related to font scaling settings.
The other issue is that when in the view window, viewing a dataframe or table, the horizontal scroll bar is very thin, almost invisible. Here's a screenshot so you can see what I mean.

I've tried running the app in various compatibility modes, as well as overriding the scaling settings in every combination possible. Either the app is very blurry and both issues are resolved, or the app looks fine but both issues are still present. I should also note that when I connect my lower-resolution wireless display (1366x768) and drag the RStudio window over to it, the problems are not present while it is on that screen. That does suggest that multi-DPI functionality is not necessarily an issue (referenced in #2135), just High-DPI scaling.
The text was updated successfully, but these errors were encountered: