Function taffy::compute::grid::track_sizing::compute_alignment_gutter_adjustment
source ยท pub(super) fn compute_alignment_gutter_adjustment(
alignment: AlignContent,
axis_inner_node_size: Option<f32>,
get_track_size_estimate: impl Fn(&GridTrack, Option<f32>) -> Option<f32>,
tracks: &[GridTrack],
) -> f32
Expand description
When applying the track sizing algorithm and estimating the size in the other axis for content sizing items we should take into account align-content/justify-content if both the grid container and all items in the other axis have definite sizes. This function computes such a per-gutter additional size adjustment.