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
- Add an Image Comparison block
- Add both images
- Apply a
settings.layout alignment value
- 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