Skip to content

Commit

Permalink
fix: inner percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Aug 6, 2024
1 parent 2c75539 commit 1b4c9fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/torin/src/measure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ where
}

// Final measurement
let (child_revalidated, child_areas) = self.measure_node(
let (child_revalidated, mut child_areas) = self.measure_node(
child_id,
&child_data,
inner_area,
Expand All @@ -432,6 +432,9 @@ where
Phase::Final,
);

// Adjust the size of the area if needed
child_areas.area.adjust_size(&child_data);

// Stack this child into the parent
Self::stack_child(
available_area,
Expand Down

0 comments on commit 1b4c9fe

Please sign in to comment.