diff options
author | 2020-02-14 15:57:07 +0100 | |
---|---|---|
committer | 2020-02-14 15:57:07 +0100 | |
commit | b72bd0b2b5c9c2a5c3f508a13ad9578169046a36 (patch) | |
tree | f75af65b619a364fd4b175e0e334f4d57df9766b /native/src/widget/container.rs | |
parent | 457d6f616af7359029b07d34d7e6cc1ab6cc6793 (diff) | |
download | iced-b72bd0b2b5c9c2a5c3f508a13ad9578169046a36.tar.gz iced-b72bd0b2b5c9c2a5c3f508a13ad9578169046a36.tar.bz2 iced-b72bd0b2b5c9c2a5c3f508a13ad9578169046a36.zip |
Add `bound` to `Node` constructor.
Diffstat (limited to 'native/src/widget/container.rs')
-rw-r--r-- | native/src/widget/container.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs index 3459a832..d2065234 100644 --- a/native/src/widget/container.rs +++ b/native/src/widget/container.rs @@ -2,7 +2,7 @@ use std::hash::Hash; use crate::{ - layout, Align, Clipboard, Element, Event, Hasher, Layout, Length, Point, + layout, Align, Clipboard, Size, Element, Event, Hasher, Layout, Length, Point, Rectangle, Widget, }; @@ -77,7 +77,6 @@ where self.max_height = max_height; self } - /// Sets the content alignment for the horizontal axis of the [`Container`]. /// /// [`Container`]: struct.Container.html @@ -149,7 +148,7 @@ where content.align(self.horizontal_alignment, self.vertical_alignment, size); - layout::Node::with_children(size, vec![content]) + layout::Node::with_children(size, Size::ZERO, vec![content]) } fn on_event( |