Function taffy::compute::grid::track_sizing::distribute_space_up_to_limits
source ยท fn distribute_space_up_to_limits(
space_to_distribute: f32,
tracks: &mut [GridTrack],
track_is_affected: impl Fn(&GridTrack) -> bool,
track_distribution_proportion: impl Fn(&GridTrack) -> f32,
track_affected_property: impl Fn(&GridTrack) -> f32,
track_limit: impl Fn(&GridTrack) -> f32,
) -> f32
Expand description
Helper function for distributing space to tracks evenly Used by both distribute_item_space_to_base_size and maximise_tracks steps