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
Describe the bug
With min_decimals set to one all values should be displayed with at least one decimal,
but 0 is displayed instead of 0.0
To Reproduce
Create a UI containing a DragValue with min_decimals set to 1 and with a current value of 0.0.
e.g. ui.add(egui::DragValue::new(&mut 0.0).min_decimals(1))
Expected behavior min_decimals is honored and 0.0 is displayed.
Screenshots
Desktop (please complete the following information):
OS: Ubuntu Jammy 22.04 under WSL 2/ Debian Bullseye
Describe the bug
With
min_decimals
set to one all values should be displayed with at least one decimal,but
0
is displayed instead of0.0
To Reproduce
Create a UI containing a
DragValue
with min_decimals set to 1 and with a current value of 0.0.e.g.
ui.add(egui::DragValue::new(&mut 0.0).min_decimals(1))
Expected behavior
min_decimals
is honored and0.0
is displayed.Screenshots
Desktop (please complete the following information):
0.25.0
Additional context
This is probably due to this special case:
https://github.com/emilk/egui/blob/master/crates/egui/src/widgets/drag_value.rs#L456-L458
The text was updated successfully, but these errors were encountered: