diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-17 19:21:47 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-17 19:21:47 +0200 |
| commit | 991e879e1d2ed53125dbff4edba80804ff28f2a9 (patch) | |
| tree | 0917f83108feca10ca4207dd9089fe57cf8098d5 /src/layout/tree.rs | |
| parent | 1987e5861cf2c033e3a540a5ef7c0f7106016929 (diff) | |
Extend stack layouts from vertical to horizontal flows ➡
Diffstat (limited to 'src/layout/tree.rs')
| -rw-r--r-- | src/layout/tree.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/layout/tree.rs b/src/layout/tree.rs index 2c904369..3a58115f 100644 --- a/src/layout/tree.rs +++ b/src/layout/tree.rs @@ -96,6 +96,7 @@ impl<'a, 'p> TreeLayouter<'a, 'p> { let mut ctx = self.ctx; ctx.style = &self.style; + ctx.flow = Flow::Vertical; ctx.shrink_to_fit = true; ctx.space.dimensions = remaining; ctx.space.padding = SizeBox::zero(); |
