trying to create a group that scales based off antoher group's total width:
``function(newPositions, activeRegions)
local space = 1
local count = #activeRegions
local sourceGroup = WeakAuras.GetRegion("Warlock Main Row")
local sourceWidth = sourceGroup.currentWidth
local width = (sourceWidth / count) - space
local totalWidth = sourceWidth
local start = - (totalWidth / 2) + (width / 2)
for i = 1, #activeRegions do
newPositions[i] = {
start + (i - 1) * (width + space),
0,
}
end
WeakAuras.ScanEvents("WARLOCK_CD_ROW_GROW", totalWidth)
end``
I seem to be running into a race condition and sourceWidth is returning just the size of 1 icon. the math to determine the new icon width is also a little off