Fit a run of tiles (a filmstrip row or a sidebar column) into the space
available along its axis.
Returns the uniform scale to apply to every tile size (1 when everything
already fits — tiles are never grown) and the leading offset that centers
the run when it underfills. Gaps are not scaled, so the scaled run plus its
gaps fits exactly. This is what keeps an 8-student filmstrip on screen
instead of pushing the rightmost tiles past the container edge.
Fit a run of tiles (a filmstrip row or a sidebar column) into the space available along its axis.
Returns the uniform
scaleto apply to every tile size (1 when everything already fits — tiles are never grown) and the leadingoffsetthat centers the run when it underfills. Gaps are not scaled, so the scaled run plus its gaps fits exactly. This is what keeps an 8-student filmstrip on screen instead of pushing the rightmost tiles past the container edge.