fix wrong scissor
This commit is contained in:
parent
00299bec0b
commit
62ebd6592d
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ fn void? Ctx.div_begin_id(&ctx, Id id, Rect size, bool scroll_x, bool scroll_y)
|
|||
.h = size.h < 0 ? max(elem.div.pcb.h, (short)-size.h) : size.h,
|
||||
};
|
||||
elem.bounds = ctx.layout_element(parent, wanted_size, style);
|
||||
elem.div.children_bounds = {};
|
||||
elem.div.children_bounds = {.x = elem.bounds.x, .y = elem.bounds.y};
|
||||
|
||||
// update the ctx scissor
|
||||
ctx.div_scissor = elem.bounds;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue