mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
change double points on size in AceGUIContainer-TreeGroup
This commit is contained in:
@@ -494,6 +494,7 @@ local methods = {
|
|||||||
end
|
end
|
||||||
|
|
||||||
local buttonnum = 1
|
local buttonnum = 1
|
||||||
|
local treewidth = treeframe:GetWidth()
|
||||||
for i = first, last do
|
for i = first, last do
|
||||||
local line = lines[i]
|
local line = lines[i]
|
||||||
local button = buttons[buttonnum]
|
local button = buttons[buttonnum]
|
||||||
@@ -503,19 +504,20 @@ local methods = {
|
|||||||
buttons[buttonnum] = button
|
buttons[buttonnum] = button
|
||||||
button:SetParent(treeframe)
|
button:SetParent(treeframe)
|
||||||
button:SetFrameLevel(treeframe:GetFrameLevel()+1)
|
button:SetFrameLevel(treeframe:GetFrameLevel()+1)
|
||||||
button:ClearAllPoints()
|
end
|
||||||
if buttonnum == 1 then
|
|
||||||
if self.showscroll then
|
button:ClearAllPoints()
|
||||||
button:SetPoint("TOPRIGHT", -22, -10)
|
if buttonnum == 1 then
|
||||||
button:SetPoint("TOPLEFT", 0, -10)
|
if self.showscroll then
|
||||||
else
|
button:SetWidth(treewidth - 22)
|
||||||
button:SetPoint("TOPRIGHT", 0, -10)
|
button:SetPoint("TOPRIGHT", -22, -10)
|
||||||
button:SetPoint("TOPLEFT", 0, -10)
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
button:SetPoint("TOPRIGHT", buttons[buttonnum-1], "BOTTOMRIGHT",0,0)
|
button:SetWidth(treewidth)
|
||||||
button:SetPoint("TOPLEFT", buttons[buttonnum-1], "BOTTOMLEFT",0,0)
|
button:SetPoint("TOPRIGHT", 0, -10)
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
button:SetWidth(self.showscroll and (treewidth - 22) or treewidth)
|
||||||
|
button:SetPoint("TOPRIGHT", buttons[buttonnum-1], "BOTTOMRIGHT",0,0)
|
||||||
end
|
end
|
||||||
|
|
||||||
UpdateButton(button, line, status.selected == line.uniquevalue, line.hasChildren, groupstatus[line.uniquevalue] )
|
UpdateButton(button, line, status.selected == line.uniquevalue, line.hasChildren, groupstatus[line.uniquevalue] )
|
||||||
@@ -558,11 +560,13 @@ local methods = {
|
|||||||
if show then
|
if show then
|
||||||
self.scrollbar:Show()
|
self.scrollbar:Show()
|
||||||
if self.buttons[1] then
|
if self.buttons[1] then
|
||||||
|
self.buttons[1]:SetWidth(self.treeframe:GetWidth() - 22)
|
||||||
self.buttons[1]:SetPoint("TOPRIGHT", self.treeframe,"TOPRIGHT",-22,-10)
|
self.buttons[1]:SetPoint("TOPRIGHT", self.treeframe,"TOPRIGHT",-22,-10)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
self.scrollbar:Hide()
|
self.scrollbar:Hide()
|
||||||
if self.buttons[1] then
|
if self.buttons[1] then
|
||||||
|
self.buttons[1]:SetWidth(self.treeframe:GetWidth())
|
||||||
self.buttons[1]:SetPoint("TOPRIGHT", self.treeframe,"TOPRIGHT",0,-10)
|
self.buttons[1]:SetPoint("TOPRIGHT", self.treeframe,"TOPRIGHT",0,-10)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user