diff options
author | 2020-02-15 00:50:36 +0100 | |
---|---|---|
committer | 2020-02-15 00:50:36 +0100 | |
commit | 4969bfdb66cf2b33033cb642423bc326e288e15b (patch) | |
tree | 030a56e38af9af6704f1f02ff52997f34e126959 /native/src/layout/flex.rs | |
parent | f5c80a6d75d5022b175d3562f0965598b6398bd7 (diff) | |
parent | cf53026b51df390d98d37f93259b7b7b0a25c6f8 (diff) | |
download | iced-4969bfdb66cf2b33033cb642423bc326e288e15b.tar.gz iced-4969bfdb66cf2b33033cb642423bc326e288e15b.tar.bz2 iced-4969bfdb66cf2b33033cb642423bc326e288e15b.zip |
Merge branch 'master' into feature/canvas
Diffstat (limited to 'native/src/layout/flex.rs')
-rw-r--r-- | native/src/layout/flex.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/native/src/layout/flex.rs b/native/src/layout/flex.rs index bd37b75a..2f65f1c1 100644 --- a/native/src/layout/flex.rs +++ b/native/src/layout/flex.rs @@ -18,7 +18,7 @@ // limitations under the License. use crate::{ layout::{Limits, Node}, - Align, Element, Size, + Align, Element, Point, Size, }; /// The main axis of a flex layout. @@ -152,8 +152,7 @@ where let (x, y) = axis.pack(main, padding); - node.bounds.x = x; - node.bounds.y = y; + node.move_to(Point::new(x, y)); match axis { Axis::Horizontal => { |