Skip to content

settings.layout alignment values are being overridden and have no effect when set on the block #29

@chrishbite

Description

@chrishbite

Expected Behavior

Setting a settings.layout alignment value via the block toolbar should have the corresponding layout effect, reset the containerHeight and containerWidth attributes and remove the WIDTH and HEIGHT settings component.

Actual Behavior

settings.layout alignment values are being overridden by the containerHeight and containerWidth attribute styles and so have no effect on the block when set.

Step-by-step reproduction instructions

  1. Add an Image Comparison block
  2. Add both images
  3. Apply a settings.layout alignment value
  4. See that this has no effect on the block

Screenshots, screen recordings, code snippets

N/A

System Information

  • Browser: Firefox Developer Edition 131.0b2 (aarch64)
  • WordPress version: 6.6.1
  • PHP version: 8.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions