mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
attempt to fix the size of frames
AceGUIContainer-ScrollFrame AceGUIContainer-TabGroup AceGUIContainer-TreeGroup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user