modern-forms / Modern.Forms

Cross-platform spiritual successor to Winforms for .NET 6+
MIT License
842 stars 54 forks source link

ScrollableControl issue #32

Closed eziriz closed 2 years ago

eziriz commented 2 years ago

As ScrollableControl uses calculations based on scaled client sizes you get a weird behavior due to rounding issues:

image

If you base the calculations on the unscaled values it works fine (updated class is attached). Surely it can't be wrong to work only with unscaled values as there is no need to care about scaling inside this class at all. ScrollableControl.zip .

jpobst commented 2 years ago

Thanks!