Skip to content

Commit 09ce65e

Browse files
committed
Fix a visual error in the config when ElvUI is loaded
1 parent e4afb53 commit 09ce65e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

config.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,16 @@ function Config:MakeExpandableSection(sectionName)
210210
end
211211
hooksecurefunc(expandInitializer, "InitFrame", function(_, frame)
212212
function frame:OnExpandedChanged(expanded)
213+
self:EvaluateVisibility(expanded);
214+
SettingsInbound.RepairDisplay();
215+
end
216+
function frame:EvaluateVisibility(expanded)
217+
-- elvui wants this function to exist
213218
if expanded then
214219
self.Button.Right:SetAtlas("Options_ListExpand_Right_Expanded", TextureKitConstants.UseAtlasSize);
215220
else
216221
self.Button.Right:SetAtlas("Options_ListExpand_Right", TextureKitConstants.UseAtlasSize);
217222
end
218-
219-
SettingsInbound.RepairDisplay();
220223
end
221224
function frame:CalculateHeight()
222225
local initializer = self:GetElementData();

0 commit comments

Comments
 (0)