git-subtree-dir: multi git-subtree-mainline: 14f186d8e1f36b38f6816dfa4d004dd023b882ce git-subtree-split: 285fa7e933d1986bcbd354294c05cee40ef43cea
12 lines
302 B
Plaintext
12 lines
302 B
Plaintext
function gui:getFullSize()
|
|
local maxx,maxy=-math.huge,-math.huge
|
|
local temp = self:GetAllChildren()
|
|
for i=1,#temp do
|
|
if temp[i].width>maxx then
|
|
maxx=temp[i].width+temp[i].offset.pos.x
|
|
elseif temp[i].height>maxy then
|
|
maxy=temp[i].height+temp[i].offset.pos.y
|
|
end
|
|
end
|
|
return maxx,maxy
|
|
end |