Commit a561ad80 authored by Simpy's avatar Simpy 🐹
Browse files

AceGUI-3.0: DropDown: Anchor all items to the dropdown frame instead of...

AceGUI-3.0: DropDown: Anchor all items to the dropdown frame instead of chaining anchors, fixes anchoring on WoW 9.0 with many items
parent 7fcc0044
......@@ -39,7 +39,7 @@ end
do
local widgetType = "Dropdown-Pullout"
local widgetVersion = 4
local widgetVersion = 5
--[[ Static data ]]--
......@@ -193,12 +193,7 @@ do
local height = 8
for i, item in pairs(items) do
if i == 1 then
item:SetPoint("TOP", itemFrame, "TOP", 0, -2)
else
item:SetPoint("TOP", items[i-1].frame, "BOTTOM", 0, 1)
end
item:SetPoint("TOP", itemFrame, "TOP", 0, -2 + (i - 1) * -16)
item:Show()
height = height + 16
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment