diff --git a/packages/block-editor/src/hooks/layout.js b/packages/block-editor/src/hooks/layout.js index 0bc43343a6c288..793010b22b74a9 100644 --- a/packages/block-editor/src/hooks/layout.js +++ b/packages/block-editor/src/hooks/layout.js @@ -146,6 +146,9 @@ function LayoutPanel( { setAttributes, attributes, name: blockName } ) { const constrainedType = getLayoutType( 'constrained' ); + const displayControlsForLegacyLayouts = + ! usedLayout.type && ( contentSize || inherit ); + const onChangeType = ( newType ) => setAttributes( { layout: { type: newType } } ); const onChangeLayout = ( newLayout ) => @@ -205,7 +208,7 @@ function LayoutPanel( { setAttributes, attributes, name: blockName } ) { layoutBlockSupport={ layoutBlockSupport } /> ) } - { constrainedType && !! contentSize && ( + { constrainedType && displayControlsForLegacyLayouts && (