开发者

How to prevent Mono from stretching the windows in a WinForms application vertically (on linux)?

开发者 https://www.devze.com 2022-12-22 03:07 出处:网络
The title is quite descriptive I think. My Winforms applications are running on Mo开发者_JAVA技巧no but there is an annoying problem: all my windows in the application are stretched vertically about 1

The title is quite descriptive I think. My Winforms applications are running on Mo开发者_JAVA技巧no but there is an annoying problem: all my windows in the application are stretched vertically about 1.5 times. So my square shaped buttons and windows become rectangles. Only the sizes are scretched font sizes are not. So there are big gaps in the layout.

Does anyone have ideas how to fix this? Is it bug in Mono?


This is generally due to autoscaling:

http://www.mono-project.com/FAQ:_Winforms#My_forms_are_sized_improperly

0

精彩评论

暂无评论...
验证码 换一张
取 消