diff --git a/src/widget/button/icon.rs b/src/widget/button/icon.rs index 1fcd6455..9a70a510 100644 --- a/src/widget/button/icon.rs +++ b/src/widget/button/icon.rs @@ -162,8 +162,6 @@ impl<'a, Message: Clone + 'static> From> for Element<'a, Mes let button = if builder.variant.vertical { crate::widget::column::with_children(content) .padding(builder.padding) - // .width(builder.width) - // .height(builder.height) .spacing(builder.spacing) .align_items(Alignment::Center) .apply(button) diff --git a/src/widget/button/mod.rs b/src/widget/button/mod.rs index a3f4f95a..34574b15 100644 --- a/src/widget/button/mod.rs +++ b/src/widget/button/mod.rs @@ -55,9 +55,11 @@ pub struct Builder<'a, Message, Variant> { on_press: Option, /// Sets the preferred width of the button. + #[setters(into)] width: Length, /// Sets the preferred height of the button. + #[setters(into)] height: Length, /// Sets the preferred padding of the button.