attempt to fix the size of frames

AceGUIContainer-ScrollFrame
AceGUIContainer-TabGroup
AceGUIContainer-TreeGroup
This commit is contained in:
Bunny67
2018-07-21 17:12:22 +03:00
parent cf0417502d
commit 3750fefa76
3 changed files with 25 additions and 2 deletions
@@ -147,10 +147,18 @@ local methods = {
["OnWidthSet"] = function(self, width)
local content = self.content
content:SetWidth(width)
content.width = width
end,
["OnHeightSet"] = function(self, height)
local parent = self.parent
if parent and height then
height = (parent.content.height or 0) or height
self.frame.height = parent.content.height or 0
end
self.scrollframe:SetHeight(height)
local content = self.content
content.height = height
end