Skip to content

Commit

Permalink
Fix inverted track sizing conditional (#784)
Browse files Browse the repository at this point in the history
Regression from #773 (implement calc in low-level API)
  • Loading branch information
nicoburns authored Jan 10, 2025
1 parent d19b5f5 commit b6c9085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compute/grid/track_sizing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ fn resolve_intrinsic_track_sizes<Tree: LayoutPartialTree>(
// 5. For intrinsic maximums: Next increase the growth limit of tracks with an intrinsic max track sizing function by
// distributing extra space as needed to account for these items' min-content contributions.
let has_intrinsic_max_track_sizing_function =
move |track: &GridTrack| track.max_track_sizing_function.has_definite_value(axis_inner_node_size);
move |track: &GridTrack| !track.max_track_sizing_function.has_definite_value(axis_inner_node_size);
for item in batch.iter_mut() {
let axis_min_content_size = item_sizer.min_content_contribution(item);
let space = axis_min_content_size;
Expand Down

0 comments on commit b6c9085

Please sign in to comment.