Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Sep 18, 2024
1 parent 4d30b46 commit 412c8c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/torin/src/measure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ where
available_area.origin.x = child_area.max_x() + spacing.get();
available_area.size.width -= child_area.size.width + spacing.get();

inner_sizes.height = (child_area.height() + parent_node.padding.vertical()).max(inner_sizes.height);
inner_sizes.height =
(child_area.height() + parent_node.padding.vertical()).max(inner_sizes.height);
inner_sizes.width += child_area.width() + spacing.get();

// Keep the biggest height
Expand All @@ -650,7 +651,8 @@ where
available_area.origin.y = child_area.max_y() + spacing.get();
available_area.size.height -= child_area.size.height + spacing.get();

inner_sizes.width = (child_area.width() + parent_node.padding.horizontal()).max(inner_sizes.width);
inner_sizes.width =
(child_area.width() + parent_node.padding.horizontal()).max(inner_sizes.width);
inner_sizes.height += child_area.height() + spacing.get();

// Keep the biggest width
Expand Down

0 comments on commit 412c8c3

Please sign in to comment.