fix: settings popup height
This commit is contained in:
+30
-1
@@ -137,7 +137,31 @@ function Guda_SettingsPopup_OnShow(self)
|
|||||||
-- Update display (might be too tall for current frame size)
|
-- Update display (might be too tall for current frame size)
|
||||||
local frame = getglobal("Guda_SettingsPopup")
|
local frame = getglobal("Guda_SettingsPopup")
|
||||||
if frame then
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -499,6 +523,11 @@ function Guda_SettingsPopup_HideBordersCheckbox_OnClick(self)
|
|||||||
Guda:ApplyBackdrop(bankFrame, "DEFAULT_FRAME", "DEFAULT")
|
Guda:ApplyBackdrop(bankFrame, "DEFAULT_FRAME", "DEFAULT")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Update border visibility on settings frame
|
||||||
|
if SettingsPopup.UpdateBorderVisibility then
|
||||||
|
SettingsPopup:UpdateBorderVisibility()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Quality Border Equipment Checkbox OnLoad
|
-- Quality Border Equipment Checkbox OnLoad
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<!-- Settings Popup Frame -->
|
<!-- Settings Popup Frame -->
|
||||||
<Frame name="Guda_SettingsPopup" toplevel="true" movable="true" enableMouse="true" hidden="true" parent="UIParent" frameStrata="DIALOG">
|
<Frame name="Guda_SettingsPopup" toplevel="true" movable="true" enableMouse="true" hidden="true" parent="UIParent" frameStrata="DIALOG">
|
||||||
<Size>
|
<Size>
|
||||||
<AbsDimension x="420" y="570"/>
|
<AbsDimension x="420" y="590"/>
|
||||||
</Size>
|
</Size>
|
||||||
|
|
||||||
<Anchors>
|
<Anchors>
|
||||||
|
|||||||
Reference in New Issue
Block a user