fixed crash -> if you dont use :setSize() on sub frames
This commit is contained in:
@@ -24,7 +24,7 @@ local function Frame(name, parent)
|
||||
|
||||
if (parent ~= nil) then
|
||||
base.parent = parent
|
||||
base.width, base.height = parent.w, parent.h
|
||||
base.width, base.height = parent:getSize()
|
||||
base.bgColor = theme.FrameBG
|
||||
base.fgColor = theme.FrameFG
|
||||
else
|
||||
@@ -580,6 +580,11 @@ local function Frame(name, parent)
|
||||
return addObject(obj)
|
||||
end;
|
||||
|
||||
addSwitch = function(self, name)
|
||||
local obj = Switch(name)
|
||||
return addObject(obj)
|
||||
end;
|
||||
|
||||
addFrame = function(self, name)
|
||||
local obj = Frame(name, self)
|
||||
return addObject(obj)
|
||||
|
||||
Reference in New Issue
Block a user