-
Notifications
You must be signed in to change notification settings - Fork 567
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
Fix progress bar rendering #949
Fix progress bar rendering #949
Conversation
let rounded_rect = Rect::from_origin_size( | ||
Point::ORIGIN, | ||
Point::new(-inset, 0.), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to translate the rect to respect the x inset.
Thanks for the fix! Please also add an entry to |
Added an entry to the changelog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this works!
PS. I added the missing link in the changelog. We're hoping to automate the changelog links soon.
155783c
to
cb66b25
Compare
Thanks @scholtzan! |
cb66b25
to
d927389
Compare
Fixes #919
The problem causing this rendering issue is that insets get applied to a
Rect
with zero width. This results in aRect
of some negative width getting displayed when the progress bar is at zero.