Skip to content

Commit 1a335e0

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 1a65b51 commit 1a335e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tree.rs

+1-1
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)