Skip to content

Commit

Permalink
fixed #813 [HxProgressBar] The progress bar is broken when the range …
Browse files Browse the repository at this point in the history
…differs from 0 to 100
  • Loading branch information
hakenr committed May 23, 2024
1 parent afec5a3 commit 91801cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private int GetNormalizedValue()
return (int)Value;
}

float normalized = (float)((100f / (MaxValueEffective - MinValueEffective) * (Value - MinValueEffective)) + 100f);
float normalized = (float)((100f / (MaxValueEffective - MinValueEffective) * (Value - MaxValueEffective)) + 100f);
return (int)normalized;
}
}

0 comments on commit 91801cf

Please sign in to comment.