Skip to content

Skip default layout assignment if already set during creation #1671 - #1672

Open
ptziegler wants to merge 1 commit into
masterfrom
issue1671
Open

ptziegler wants to merge 1 commit into
masterfrom
issue1671

Conversation

@ptziegler

Copy link
Copy Markdown
Contributor

It is possible to automatically assign a layout within the wbp-component file whenever a custom widget is created. If combined with the default layout assignment, this then creates a situation where two layouts are set for the component, which will then lead to a "Duplicate Layout" error.

The implementation of the processInitialLayout``method has been adapted to return early, if the setLayout(...)` method is already called, even if the model isn't yet aware of it.

Closes #1671

It is possible to automatically assign a layout within the wbp-component
file whenever a custom widget is created. If combined with the default
layout assignment, this then creates a situation where two layouts are
set for the component, which will then lead to a "Duplicate Layout"
error.

The implementation of the `processInitialLayout``method has been adapted
to return early, if the `setLayout(...)` method is already called, even
if the model isn't yet aware of it.

Closes #1671
@github-actions

Copy link
Copy Markdown

Test Results

     4 files  ±0       4 suites  ±0   2h 13m 54s ⏱️ + 6m 6s
 7 022 tests +2   6 992 ✅ +2  30 💤 ±0  0 ❌ ±0 
23 688 runs  +4  23 592 ✅ +4  96 💤 ±0  0 ❌ ±0 

Results for commit 3459f4b. ± Comparison against base commit 478ed27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Only set default layout when no other layout is set

1 participant