Layout: Stack block loses its flex-direction style after changing its child layout #55249
Labels
[Feature] Layout
Layout block support, its UI controls, and style output.
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Steps to reproduce:
Create a flex layout with a row + stack + two items structure:
It is displayed in the editor like this, with the paragraph item laid out in a column:
Now select the Stack group, and go to its Styles / Dimensions / Width settings:
Here change "Fit" to "Fill". And then change back to "Fit" (because you don't like the change).
After switching to "Fill" the Stack block's items are suddenly aligned horizonally and they stay horizonal even after you change back to "Fit":
My layout is still broken even though I returned back to the original "Fit" option. The only way how to get the original back is Undo or page reload.
The horizonal alignment is caused by the fact that the Stack block originally has a
flex-direction: column
style:but that style disappears after switching to "Fill". And is not re-added after returning to "Fit".
The text was updated successfully, but these errors were encountered: