core/rendering/base/gallery_render_base
library
Functions
-
galleryColumnSpan(double aspect)
→ int
-
How many COLUMNS a tile of the given
aspect (width/height) spans in the
CSS-grid base — wider artwork spans more columns. The opt-in packer refines.
-
galleryRowSpan(double aspect)
→ int
-
How many coarse ROWS a tile of the given
aspect spans in the CSS-grid
base. Buckets mirror the previous masonry (square ~2, portrait/wide ~3,
tall ~4) against the minColumnWidth/2 row unit.
-
galleryRowUnitFor(double minColumnWidth)
→ double
-
The CSS-grid base uses coarse, roughly-square cells (a row is ~half a column
wide) so wide artwork must span multiple COLUMNS — that is what produces the
variable-width mosaic.
grid-auto-rows is set to minColumnWidth / 2.