work on div sliders, major changes
* Ids are now keyed based on the parent's id, this means that an element can have the same label when placed in different divs * Divs now enable the scissor test, this way the elements cannot draw outside of the parent div bounds * Introduced a LAYOUT_ABSOLUTE that disables all layout logic, for internal use * Divs now draw scrollbars using the slider_hor and slider_ver elements
This commit is contained in:
parent
499f6dc79b
commit
a481269022
8 changed files with 86 additions and 121 deletions
|
|
@ -171,7 +171,7 @@ fn void! Ctx.push_scissor(&ctx, Rect rect)
|
|||
{
|
||||
Cmd sc = {
|
||||
.type = CMD_SCISSOR,
|
||||
.scissor.rect = rect,
|
||||
.scissor.rect = rect.intersection(ctx.div_scissor),
|
||||
};
|
||||
ctx.cmd_queue.enqueue(&sc)!;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue