diff options
author | 2019-11-10 06:05:20 +0100 | |
---|---|---|
committer | 2019-11-11 03:08:00 +0100 | |
commit | 0240c3981b716c82ecb3364945815335b420a63e (patch) | |
tree | 441eebaa9441649a4e878bde71cdec20d4a67391 /examples/todos.rs | |
parent | 2303111e09d806ef2a652bddc2b73be6dccf6ae2 (diff) | |
download | iced-0240c3981b716c82ecb3364945815335b420a63e.tar.gz iced-0240c3981b716c82ecb3364945815335b420a63e.tar.bz2 iced-0240c3981b716c82ecb3364945815335b420a63e.zip |
Draft custom layout engine based on `druid`
Diffstat (limited to 'examples/todos.rs')
-rw-r--r-- | examples/todos.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/todos.rs b/examples/todos.rs index 5257fc12..4caad949 100644 --- a/examples/todos.rs +++ b/examples/todos.rs @@ -1,6 +1,6 @@ use iced::{ scrollable, text::HorizontalAlignment, text_input, Align, Application, - Checkbox, Color, Column, Element, Length, Scrollable, Text, TextInput, + Checkbox, Color, Column, Element, Scrollable, Text, TextInput, }; pub fn main() { @@ -77,7 +77,7 @@ impl Application for Todos { ); let content = Column::new() - .max_width(Length::Units(800)) + .max_width(800) .align_self(Align::Center) .spacing(20) .push(title) |