summaryrefslogtreecommitdiffstats
path: root/native/src/widget/container.rs
diff options
context:
space:
mode:
authorLibravatar daxpedda <daxpedda@gmail.com>2020-02-14 21:41:35 +0100
committerLibravatar daxpedda <daxpedda@gmail.com>2020-02-14 21:41:35 +0100
commitf4b8bce837513cdd06df3a3ceba86fd9256d3cc5 (patch)
tree5770a36750aac47a7bc656d809f6e217177c6a49 /native/src/widget/container.rs
parent60b40fdc99647d77febaae1d483fc5642c4ba50d (diff)
downloadiced-f4b8bce837513cdd06df3a3ceba86fd9256d3cc5.tar.gz
iced-f4b8bce837513cdd06df3a3ceba86fd9256d3cc5.tar.bz2
iced-f4b8bce837513cdd06df3a3ceba86fd9256d3cc5.zip
Revert changing the constructor and implement new method.
Diffstat (limited to 'native/src/widget/container.rs')
-rw-r--r--native/src/widget/container.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs
index d2065234..07bb62c6 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, Size, Element, Event, Hasher, Layout, Length, Point,
+ layout, Align, Clipboard, Element, Event, Hasher, Layout, Length, Point,
Rectangle, Widget,
};
@@ -148,7 +148,7 @@ where
content.align(self.horizontal_alignment, self.vertical_alignment, size);
- layout::Node::with_children(size, Size::ZERO, vec![content])
+ layout::Node::with_children(size, vec![content])
}
fn on_event(