summaryrefslogtreecommitdiffstats
path: root/native/src/widget/button.rs
diff options
context:
space:
mode:
authorLibravatar daxpedda <daxpedda@gmail.com>2020-02-14 15:57:07 +0100
committerLibravatar daxpedda <daxpedda@gmail.com>2020-02-14 15:57:07 +0100
commitb72bd0b2b5c9c2a5c3f508a13ad9578169046a36 (patch)
treef75af65b619a364fd4b175e0e334f4d57df9766b /native/src/widget/button.rs
parent457d6f616af7359029b07d34d7e6cc1ab6cc6793 (diff)
downloadiced-b72bd0b2b5c9c2a5c3f508a13ad9578169046a36.tar.gz
iced-b72bd0b2b5c9c2a5c3f508a13ad9578169046a36.tar.bz2
iced-b72bd0b2b5c9c2a5c3f508a13ad9578169046a36.zip
Add `bound` to `Node` constructor.
Diffstat (limited to 'native/src/widget/button.rs')
-rw-r--r--native/src/widget/button.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/button.rs b/native/src/widget/button.rs
index 5b0d3e41..73be4d49 100644
--- a/native/src/widget/button.rs
+++ b/native/src/widget/button.rs
@@ -7,7 +7,7 @@
use crate::{
input::{mouse, ButtonState},
layout, Clipboard, Element, Event, Hasher, Layout, Length, Point,
- Rectangle, Widget,
+ Rectangle, Size, Widget,
};
use std::hash::Hash;
@@ -174,7 +174,7 @@ where
let size = limits.resolve(content.size()).pad(padding);
- layout::Node::with_children(size, vec![content])
+ layout::Node::with_children(size, Size::ZERO, vec![content])
}
fn on_event(