Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnemecek committed May 16, 2020
1 parent 8176636 commit 4f98102
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/algo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,17 +598,12 @@ impl Forest {
// min-content max-content constraints from the top. Need to figure out correct thing to do here as
// just piling on more conditionals.
let min_main = if is_row && self.nodes[child.node].measure.is_none() {
self.compute_internal(
child.node,
Size::undefined(),
available_space,
false,
)
.size
.width
.maybe_min(child.size.width)
.maybe_max(child.min_size.width)
.into()
self.compute_internal(child.node, Size::undefined(), available_space, false)
.size
.width
.maybe_min(child.size.width)
.maybe_max(child.min_size.width)
.into()
} else {
child.min_size.main(dir)
};
Expand Down

0 comments on commit 4f98102

Please sign in to comment.