Skip to content

Commit

Permalink
vaev-layout: fix pass around known size of block child
Browse files Browse the repository at this point in the history
Allow known width to be passed to block children even on speculative mode.
  • Loading branch information
pauloamed committed Nov 22, 2024
1 parent ac7d3d7 commit 16b9f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vaev-layout/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct BlockFormatingContext {

if (c.style->position != Position::ABSOLUTE) {
blockSize += margin.top;
if (input.commit == Commit::YES)
if (input.commit == Commit::YES or input.knownSize.x)
childInput.knownSize.width = childInlineSize;
}

Expand Down

0 comments on commit 16b9f53

Please sign in to comment.