Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Show child layout panel for all layout types
  • Loading branch information
tellthemachines committed Feb 27, 2024
commit 82f68ff6f7d0285bac62aec3da581fdba863d005
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,9 @@ function useHasAspectRatio( settings ) {
}

function useHasChildLayout( settings ) {
const {
type: parentLayoutType = 'default',
default: { type: defaultParentLayoutType = 'default' } = {},
allowSizingOnChildren = false,
} = settings?.parentLayout ?? {};
const { allowSizingOnChildren = false } = settings?.parentLayout ?? {};

const support =
( defaultParentLayoutType === 'flex' ||
parentLayoutType === 'flex' ||
defaultParentLayoutType === 'grid' ||
parentLayoutType === 'grid' ) &&
allowSizingOnChildren;
const support = allowSizingOnChildren;
return !! settings?.layout && support;
}

Expand Down