scissor command

This commit is contained in:
Alessandro Mauri 2024-12-15 22:29:07 +01:00
parent 6d8300f9d9
commit bca29c537c
6 changed files with 83 additions and 63 deletions

View file

@ -86,7 +86,7 @@ fn Rect Ctx.position_element(&ctx, Elem *parent, Rect rect, bool style = false)
{
Rect placement;
Point origin;
Div* div = &parent.div;
ElemDiv* div = &parent.div;
// 1. Select the right origin
switch (div.layout) {