You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node1 is root node. with LAY_WRAP | LAY_COLUMN flags. margin 5, 5, 5, 5
node2 is a child of node1. margin 5, 5, 5, 5
node3 is a child of node2. margin 5, 5, 5, 5
// in lay_arrangecaseLAY_COLUMN | LAY_WRAP:
if (dim!=0) {
lay_arrange_stacked(ctx, item, 1, true);
// note: The x-coordinates are recalculated here, // but the child nodes are not recursively updated, so just add the relevant codelay_scalaroffset=lay_arrange_wrapped_overlay_squeezed(ctx, item, 0);
ctx->rects[item][2+0] =offset-ctx->rects[item][0];
// ----- workground beginlay_idchild=pitem->first_child;
while (child!=LAY_INVALID_ID) {
// NOTE: this is recursive and will run out of stack space if items are// nested too deeply.lay_arrange(ctx, child, 0);
lay_item_t*pchild=lay_get_item(ctx, child);
child=pchild->next_sibling;
}
break;
// ----- workground end
}
// ----- workground beginreturn;
// ----- workground endbreak;
The patch in issue #15 needs to be used (lay_arrange_overlay and lay_arrange_overlay_squeezed_range).
node1 is root node. with
LAY_WRAP | LAY_COLUMN
flags. margin 5, 5, 5, 5node2 is a child of node1. margin 5, 5, 5, 5
node3 is a child of node2. margin 5, 5, 5, 5
Expected results:
test case:
Here's my workground code that seems to fix this:
The patch in issue #15 needs to be used (lay_arrange_overlay and lay_arrange_overlay_squeezed_range).
Exported layout files:
grandsonx.json
The text was updated successfully, but these errors were encountered: