diff options
author | 2020-09-15 12:56:50 +0200 | |
---|---|---|
committer | 2020-11-26 03:09:46 +0100 | |
commit | 9991a894286a52dc81c1f8e449a64395bbe5b5fe (patch) | |
tree | f574887724d73fad216b8c7d02dcc0106d7056f9 /docs/graphs/ecosystem.png | |
parent | 1f7e8b7f3d1804c39c8e0934b25f3ef178de269c (diff) | |
download | iced-9991a894286a52dc81c1f8e449a64395bbe5b5fe.tar.gz iced-9991a894286a52dc81c1f8e449a64395bbe5b5fe.tar.bz2 iced-9991a894286a52dc81c1f8e449a64395bbe5b5fe.zip |
fix active_progress_width formula
change :
let active_progress_width = bounds.width * ((value - range_start) / (range_end - range_start).max(1.0))
to :
let active_progress_width = bounds.width * ((value - range_start) / (range_end - range_start).max(f32::EPSILON)).max(0.0).min(1.0)
Diffstat (limited to 'docs/graphs/ecosystem.png')
0 files changed, 0 insertions, 0 deletions