Previously we were only having the wallpaper plugins' child form layouts hooked up to the main form layouts. That causes issues when a label in a plugin is longer than the labels in the main layout. To solve the issue, this patch also makes the main layout responsive to the content of the child layouts.
- Group Reviewers
- R119:1c6644a42b7a: Hook up the main form layout with child form layouts
twinFormLayouts: main.currentItem will stop working as soon as the wallpaper plugin in anything more complicated than having a single form layout. How do I specify that, yes, I want the currentItem, but only the form layout in that file?
@mart before you suggested we should do something like:
twinFormLayouts: stack.item && stack.item.formLayout ? [stack.item.formLayout] : 
but I'm not seeing any errors or issues if twinFormLayouts doesn't find main.currentItem.formLayout.
Is the diff okay then or should I specify that it shouldn't do anything if it doesn't find a child form layout?