Deprecate old Slider constructors in favor of Slider::new

This commit is contained in:
Emil Ernerfeldt
2021-03-27 16:07:18 +01:00
parent 5481aa8d98
commit de439b6e21
16 changed files with 58 additions and 55 deletions
+2 -2
View File
@@ -119,10 +119,10 @@ impl LayoutTest {
if self.main_wrap {
if self.main_dir.is_horizontal() {
ui.add(Slider::f32(&mut self.wrap_row_height, 0.0..=200.0).text("Row height"));
ui.add(Slider::new(&mut self.wrap_row_height, 0.0..=200.0).text("Row height"));
} else {
ui.add(
Slider::f32(&mut self.wrap_column_width, 0.0..=200.0).text("Column width"),
Slider::new(&mut self.wrap_column_width, 0.0..=200.0).text("Column width"),
);
}
}