RoboCup-SPL / GameController3

This is the official GameController used in the RoboCup Standard Platform League
MIT License
16 stars 8 forks source link

HiDPI scaling move parts of the UI outside the window #39

Open sigurg opened 1 year ago

sigurg commented 1 year ago

Hi Arne, I noticed an issue with HiDPI scaling on Linux. When the GDK_DPI_SCALE environment variable is set (in my case to 1.25), the UI is scaled up, but window size does not change accordingly, which moves part of the UI outside of the visible window area. This makes it impossible to click the start button, since the window cannot be resized: scaling-issue

A quick workaround would be to add unset GDK_DPI_SCALE to the start script. This would make the gamecontroller usable, but is obviously not ideal, since the UI will not be scaled and could end up rather small.

Best, Jens

jayenashar commented 1 year ago

i think the user should not be prevented from resizing the window. i've added some text which will cause the content to be of a dynamic height.

another workaround would be to allow scrolling. not ideal but i think better than unsetting GDK_DPI_SCALE.

for now, you can try using the tab key to get to the start button. of course that requires you to know how many times to press tab.