diff --git a/crates/egui/src/style.rs b/crates/egui/src/style.rs index 1e865e4cc81..fef3bb0698b 100644 --- a/crates/egui/src/style.rs +++ b/crates/egui/src/style.rs @@ -589,6 +589,10 @@ impl ScrollStyle { ui.add(DragValue::new(handle_min_length).clamp_range(0.0..=32.0)); ui.label("Minimum handle length"); }); + ui.horizontal(|ui| { + ui.add(DragValue::new(bar_inner_margin).clamp_range(0.0..=32.0)); + ui.label("Inner margin"); + }); ui.horizontal(|ui| { ui.add(DragValue::new(bar_outer_margin).clamp_range(0.0..=32.0)); ui.label("Outer margin"); @@ -624,11 +628,6 @@ impl ScrollStyle { opacity_ui(ui, interact_handle_opacity); ui.end_row(); }); - } else { - ui.horizontal(|ui| { - ui.add(DragValue::new(bar_inner_margin).clamp_range(0.0..=32.0)); - ui.label("Inner margin"); - }); } } }