diff options
author | 2024-01-09 06:35:33 +0100 | |
---|---|---|
committer | 2024-01-10 10:01:49 +0100 | |
commit | d62bb8193c1c43f565fcc5c52293d564c91e215d (patch) | |
tree | 7f2d33d2f18a3dfb4e4e8e46b4e968523ca43bc6 /examples/loading_spinners/src/linear.rs | |
parent | d24e50c1a61eee7bca887224ad583eca60e14d32 (diff) | |
download | iced-d62bb8193c1c43f565fcc5c52293d564c91e215d.tar.gz iced-d62bb8193c1c43f565fcc5c52293d564c91e215d.tar.bz2 iced-d62bb8193c1c43f565fcc5c52293d564c91e215d.zip |
Introduce useful helpers in `layout` module
Diffstat (limited to 'examples/loading_spinners/src/linear.rs')
-rw-r--r-- | examples/loading_spinners/src/linear.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/loading_spinners/src/linear.rs b/examples/loading_spinners/src/linear.rs index d205d3f1..d245575c 100644 --- a/examples/loading_spinners/src/linear.rs +++ b/examples/loading_spinners/src/linear.rs @@ -178,10 +178,7 @@ where _renderer: &Renderer, limits: &layout::Limits, ) -> layout::Node { - let limits = limits.width(self.width).height(self.height); - let size = limits.resolve(Size::ZERO, self.width, self.height); - - layout::Node::new(size) + layout::atomic(limits, self.width, self.height) } fn on_event( |