correct placement and box model
This commit is contained in:
parent
250a0fb3b5
commit
763e9ba8d6
5 changed files with 85 additions and 42 deletions
|
|
@ -32,6 +32,12 @@ macro Ctx.get_elem_by_label(&ctx, String label)
|
|||
return ctx.cache.search(id);
|
||||
}
|
||||
|
||||
macro Ctx.get_elem_by_tree_idx(&ctx, isz idx) @private
|
||||
{
|
||||
Id id = ctx.tree.get(ctx.active_div)!;
|
||||
return ctx.cache.search(id);
|
||||
}
|
||||
|
||||
fn void! Ctx.init(&ctx)
|
||||
{
|
||||
ctx.tree.init(MAX_ELEMENTS)!;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue