Skip to content

Tiled Gallery: Adjust columns attribute when images are removed #30015

@sirreal

Description

@sirreal

We don't allow the range control for columns to be greater than the number of images in the Gallery, but if we've set it and remove images, the columns attribute can be greater than the images. We should ensure that the columns attribute and the range control are not greater than the number of images.

Steps to reproduce

  1. Add a number of image to a Tiled Gallery (8).
  2. Pick a view with an adjustable columns setting (circles).
  3. Set the columns to the maximum.
  4. Using "Edit Gallery" from the block toolbar, remove images.
  5. The images in the gallery are updated, but the maximum columns in the sidebar is not. This is the bug.

Metadata

Metadata

Assignees

Labels

[Block] Tiled Gallery[Feature] MediaThe media screen in Calypso, general media management, or integration with third party media.[Pri] LowAddress when resources are available.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions