harlam357 / hfm-net

Client Monitoring Application for Folding@Home
34 stars 6 forks source link

Fix #358 High DPI scaling row height #362

Closed Justaphf closed 2 years ago

Justaphf commented 2 years ago

This fixes reported issue #358 in three places by setting the data grid row auto sizing mode to DisplayedCellsExceptHeaders. Using that specific setting for performance reasons (using AllCellsExceptHeaders is a big performance hit when displaying the WorkUnitHistoryForm when there are lots of rows).

NOTE: I have fixed these 3 places based on doing a quick search for where AutoGenerateColumns property was being set in the code base. There may be other datagrids which need fixing that do not set this flag so I didn't see/look for them.

TESTING: I viewed these data grids on a 4K monitor with 150% text scaling in Windows 10. I did not test on any other resolutions, font scaling levels, or OS.

harlam357 commented 2 years ago

Nice find. Appreciate the contribution. I have another branch where I've been working on some things so I'll include this in the next release.