fix: settings popup height

This commit is contained in:
Salikh Gurgenidze
2025-12-21 21:31:42 +04:00
parent de9ac33ad7
commit c80f88ac6f
2 changed files with 31 additions and 2 deletions
+30 -1
View File
@@ -137,7 +137,31 @@ function Guda_SettingsPopup_OnShow(self)
-- Update display (might be too tall for current frame size)
local frame = getglobal("Guda_SettingsPopup")
if frame then
frame:SetHeight(560)
frame:SetHeight(600)
end
-- Apply border visibility
if SettingsPopup.UpdateBorderVisibility then
SettingsPopup:UpdateBorderVisibility()
end
end
-- Update border visibility based on setting
function SettingsPopup:UpdateBorderVisibility()
if not addon or not addon.Modules or not addon.Modules.DB then return end
local frame = getglobal("Guda_SettingsPopup")
if not frame then return end
local hideBorders = addon.Modules.DB:GetSetting("hideBorders")
if hideBorders == nil then
hideBorders = false
end
if hideBorders then
addon:ApplyBackdrop(frame, "MINIMALIST_BORDER", "DEFAULT")
else
addon:ApplyBackdrop(frame, "DEFAULT_FRAME", "DEFAULT")
end
end
@@ -499,6 +523,11 @@ function Guda_SettingsPopup_HideBordersCheckbox_OnClick(self)
Guda:ApplyBackdrop(bankFrame, "DEFAULT_FRAME", "DEFAULT")
end
end
-- Update border visibility on settings frame
if SettingsPopup.UpdateBorderVisibility then
SettingsPopup:UpdateBorderVisibility()
end
end
-- Quality Border Equipment Checkbox OnLoad
+1 -1
View File
@@ -3,7 +3,7 @@
<!-- Settings Popup Frame -->
<Frame name="Guda_SettingsPopup" toplevel="true" movable="true" enableMouse="true" hidden="true" parent="UIParent" frameStrata="DIALOG">
<Size>
<AbsDimension x="420" y="570"/>
<AbsDimension x="420" y="590"/>
</Size>
<Anchors>