Skip to content

Commit

Permalink
Spacer: Fix flex layout unit reset (WordPress#68815)
Browse files Browse the repository at this point in the history
Co-authored-by: Mayank-Tripathi32 <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: ndiego <[email protected]>
Co-authored-by: stokesman <[email protected]>
Co-authored-by: hanneslsm <[email protected]>
  • Loading branch information
7 people authored Jan 22, 2025
1 parent 05ef404 commit 06ee5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/spacer/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const SpacerEdit = ( {
isFlexLayout &&
selfStretch !== 'fill' &&
selfStretch !== 'fit' &&
! flexSize
flexSize === undefined
) {
if ( inheritedOrientation === 'horizontal' ) {
// If spacer is moving from a vertical container to a horizontal container,
Expand Down

0 comments on commit 06ee5e1

Please sign in to comment.