Skip to content

Commit c40aaa1

Browse files
committed
Single padding widget in stepper example
1 parent 98c1631 commit c40aaa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

druid/examples/switch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn build_widget() -> impl Widget<DemoState> {
4141
DemoState::stepper_value.map(|x| Some(*x), |x, y| *x = y.unwrap_or(0.0)),
4242
);
4343
textbox_row.add_child(Padding::new(5.0, textbox), 0.0);
44-
textbox_row.add_child(Padding::new(5.0, stepper.center().padding(5.0)), 0.0);
44+
textbox_row.add_child(Padding::new(5.0, stepper.center()), 0.0);
4545

4646
let mut label_row = Flex::row();
4747

0 commit comments

Comments
 (0)