Skip to content

Change in web component height doesn't update masonry layout #2898

@cairocoder01

Description

@cairocoder01

Describe the bug
When a web component that can change in height because of added items is updated so that its height changes, if there is another tile below the one it is in, the current tile increases in height and goes behind the one below it.

To Reproduce
Steps to reproduce the behavior:

  1. Install plugin starter on local site so that "A Beautiful Tile" is added, or create a new tile that is first in the list that includes a multi-text/communication_channel component (or any other multi-select based component that can increase in height with multiple values selected.)
  2. Ensure there is a tile directly below the new one.
  3. Add values to the component until it increases in height
  4. See the tile expand in height and go behind the one below it.

Expected behavior
Tile below adjusts position based on changed height of current tile. Masonry script should be run when any component update happens.

Additional context
We should be able to intercept any change events on the record detail screen and re-run the masonry init script when that happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions