-
Notifications
You must be signed in to change notification settings - Fork 63
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
[Bug]: KryptonButton - Image stretches with increased border rounding #739
Comments
I think (Just speculating) that there is not enough "room" left for the text to be drawn, so the image is then given full access to the width of the area. Rounding effectively takes a little away from the drawing area, and then also applies "Extra" to the outside as well, so it effectively adds to the "Dead space" around the image and text. |
Proposed fix.. Make the Preferred size ignore whether text can be drawn fully, and force clipping to be used. |
It is to allow a very large image to be scaled down !! |
…he image. Ensure that the ratio is applied in the correct direction #739
Windows 10
Visual Studio (VB) 2019
.Net 4.8
Krypton Toolkit 65.22.6.15
With border rounding set to above '7', image applied to button streches to full width of control, unless we increase control height
To keep consistent control sizes, can the strech be avoided?
Is it possible to shift the image a few pixels to the right?
The text was updated successfully, but these errors were encountered: