diff options
author | 2024-07-18 13:22:53 +0200 | |
---|---|---|
committer | 2024-07-18 13:22:53 +0200 | |
commit | aa62fa2ce992949d20ddbe8683ed2be0d922a568 (patch) | |
tree | d46b2946b9bc2add8c1396de036ee51074d95b0d /examples/markdown | |
parent | 904704d7c1b006c850654dcf3bf9e856e23cb317 (diff) | |
download | iced-aa62fa2ce992949d20ddbe8683ed2be0d922a568.tar.gz iced-aa62fa2ce992949d20ddbe8683ed2be0d922a568.tar.bz2 iced-aa62fa2ce992949d20ddbe8683ed2be0d922a568.zip |
Adapt `scrollable` sizing strategy to contents
Diffstat (limited to 'examples/markdown')
-rw-r--r-- | examples/markdown/src/main.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs index 384645fa..1e3769ff 100644 --- a/examples/markdown/src/main.rs +++ b/examples/markdown/src/main.rs @@ -60,13 +60,10 @@ impl Markdown { let preview = markdown(&self.items); - row![ - editor, - scrollable(preview).spacing(10).width(Fill).height(Fill) - ] - .spacing(10) - .padding(10) - .into() + row![editor, scrollable(preview).spacing(10).height(Fill)] + .spacing(10) + .padding(10) + .into() } fn theme(&self) -> Theme { |