summaryrefslogtreecommitdiffstats
path: root/src/widget/button.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/button.rs')
-rw-r--r--src/widget/button.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/button.rs b/src/widget/button.rs
index 14fd3852..abcdbfeb 100644
--- a/src/widget/button.rs
+++ b/src/widget/button.rs
@@ -83,7 +83,7 @@ impl<'a, Message> Button<'a, Message> {
/// Sets the width of the [`Button`] in pixels.
///
/// [`Button`]: struct.Button.html
- pub fn width(mut self, width: u32) -> Self {
+ pub fn width(mut self, width: u16) -> Self {
self.style = self.style.width(width);
self
}