graphics automatic constraints

This commit is contained in:
Mikayla
2024-06-05 00:31:06 +00:00
parent 4d87887709
commit 25ebf2c8c7
4 changed files with 23 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ local function rectangle(args)
end
-- create new graphics element base object
local e = element.new(args, offset_x, offset_y)
local e = element.new(args, nil, offset_x, offset_y)
-- create content window for child elements
e.content_window = window.create(e.window, 1 + offset_x, 1 + offset_y, e.frame.w - (2 * offset_x), e.frame.h - (2 * offset_y))