Skip to content

Commit 8bdd34c

Browse files
committed
Tree widget - WIP 24 - Adjust the example so the tree doesn't jump around in the window when expanding/collapsing nodes.
1 parent aa9503c commit 8bdd34c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn main(app: &mut App) -> cushy::Result {
104104
.into_rows()
105105
.contain()
106106
.vertical_scroll()
107-
.centered()
107+
.fit_vertically()
108108
.make_widget();
109109

110110
let ui = pending.with_root(elements)

0 commit comments

Comments
 (0)