You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another problem is that you have to use the min () function to give a maximum limit to a value
The correct formula may be :
((value - range_start) / (range_end - range_start)).min(1.0)
I think there is a perenthenses problem in this formula
https://github.com/hecrj/iced/blob/4f2962d73f3bdeeca8a11817e404c45e91e2c2cc/graphics/src/widget/progress_bar.rs#L39
May be :
((value - range_start) / (range_end - range_start)).max(1.0)
Instead of :
((value - range_start) / (range_end - range_start).max(1.0))
The text was updated successfully, but these errors were encountered: