summaryrefslogtreecommitdiffstats
path: root/examples/todos
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-09 06:44:15 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-10 10:01:49 +0100
commite710e7694907fe320e0a849e880c51952e6e748f (patch)
tree017bbaff5c50e0ba49a76bc864b6486bd7089c88 /examples/todos
parentd62bb8193c1c43f565fcc5c52293d564c91e215d (diff)
downloadiced-e710e7694907fe320e0a849e880c51952e6e748f.tar.gz
iced-e710e7694907fe320e0a849e880c51952e6e748f.tar.bz2
iced-e710e7694907fe320e0a849e880c51952e6e748f.zip
Fix `size_hint` for `keyed_column`
Diffstat (limited to 'examples/todos')
-rw-r--r--examples/todos/src/main.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs
index 4dac032c..aad47c20 100644
--- a/examples/todos/src/main.rs
+++ b/examples/todos/src/main.rs
@@ -254,13 +254,7 @@ impl Application for Todos {
.spacing(20)
.max_width(800);
- scrollable(
- container(content)
- .width(Length::Fill)
- .padding(40)
- .center_x(),
- )
- .into()
+ scrollable(container(content).padding(40).center_x()).into()
}
}
}
@@ -472,7 +466,6 @@ fn empty_message(message: &str) -> Element<'_, Message> {
.horizontal_alignment(alignment::Horizontal::Center)
.style(Color::from([0.7, 0.7, 0.7])),
)
- .width(Length::Fill)
.height(200)
.center_y()
.into()