-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
[Block] GroupAffects the Group Block (and row, stack and grid variants)Affects the Group Block (and row, stack and grid variants)[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
Either the implementation of the fixed width as flex-basis: <width + unit> is wrong or the wording in the Inspector is wrong/misleading! See my video recording with explanatory audio (2m30s):
Row.block.child.offers.dimension.width.fixed.which.in.reality.is.proportional.flex-basis.mp4
Reproduction
- Create a Columns block with 2 columns, no dimension set at all, which defaults to split it 1:1.
- In the first column create this block structure:
- Row block
- Paragraph Block 1 — 1-2 Unicode symbol(s) which shall have a uniform width, e.g. 2em or 48px
- Dimensions → Width: Fixed: 48px (implementation → flex-basis: 48px)
- Paragraph Block 2 — Text of variable length. Shall take the remaining width. Wrap on multiple lines if needed.
- Dimensions → Width: Fit or Fill.
- Paragraph Block 1 — 1-2 Unicode symbol(s) which shall have a uniform width, e.g. 2em or 48px
- Row block
- Duplicate that structure as a second instances and place it in the second column.
- In one instance the Paragraph Block 2 text fits on 1 or 2 lines. In the other on 3 lines.
Actual: The Paragraph Block 1 is the two instances is not uniformly at the "fixed" site of 48px, but varies!
Expected: The fixed block really has that fixed width. And not acts proportionally behind the scene.
Metadata
Metadata
Assignees
Labels
[Block] GroupAffects the Group Block (and row, stack and grid variants)Affects the Group Block (and row, stack and grid variants)[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.