Adapt scrollable sizing strategy to contents
This commit is contained in:
parent
904704d7c1
commit
aa62fa2ce9
2 changed files with 17 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue