Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion EllesmereUIRaidFrames/EllesmereUIRaidFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7385,7 +7385,12 @@ ns._LayoutGroupsImpl = function()
or ns._flatHeader:GetAttribute("xOffset") ~= hdrXOff
or ns._flatHeader:GetAttribute("yOffset") ~= hdrYOff
or ns._flatHeader:GetAttribute("columnAnchorPoint") ~= colAnchor then
-- Clear child anchors before changing layout direction
-- Attribute changes normally relayout visible children immediately.
-- Suppress those intermediate passes: changing point before the
-- column anchor can leave both old and new points on column starts.
-- The Hide/Show below rebuilds once with the complete layout.
local oldIgnore = ns._flatHeader:GetAttribute("_ignore")
ns._flatHeader:SetAttribute("_ignore", true)
local ci, child = 1, ns._flatHeader:GetAttribute("child1")
while child do
child:ClearAllPoints()
Expand All @@ -7396,6 +7401,7 @@ ns._LayoutGroupsImpl = function()
ns._flatHeader:SetAttribute("xOffset", hdrXOff)
ns._flatHeader:SetAttribute("yOffset", hdrYOff)
ns._flatHeader:SetAttribute("columnAnchorPoint", colAnchor)
ns._flatHeader:SetAttribute("_ignore", oldIgnore)
layoutChanged = true
end
if ns._flatHeader:GetAttribute("columnSpacing") ~= gs then
Expand Down