diff --git a/Interface/AddOns/SVUI/packages/unit/SVUnit.lua b/Interface/AddOns/SVUI/packages/unit/SVUnit.lua
index 4f4b304..6b38927 100644
--- a/Interface/AddOns/SVUI/packages/unit/SVUnit.lua
+++ b/Interface/AddOns/SVUI/packages/unit/SVUnit.lua
@@ -1071,10 +1071,15 @@ function MOD:RefreshUnitLayout(frame, template)
else
frame.Health.PostUpdate = nil
end
- if(db.gps and not frame:IsElementEnabled("GPS")) then
- frame:EnableElement("GPS")
- elseif(not db.gps and frame:IsElementEnabled("GPS")) then
- frame:DisableElement("GPS")
+ if(db.gps) then
+ local actualSz = min(frame.GPS.DefaultSize, (UNIT_HEIGHT - 8))
+ if(not frame:IsElementEnabled("GPS")) then
+ frame:EnableElement("GPS")
+ end
+ else
+ if(frame:IsElementEnabled("GPS")) then
+ frame:DisableElement("GPS")
+ end
end
end
end
diff --git a/Interface/AddOns/SVUI/packages/unit/elements/misc.lua b/Interface/AddOns/SVUI/packages/unit/elements/misc.lua
index 8916759..042c9b5 100644
--- a/Interface/AddOns/SVUI/packages/unit/elements/misc.lua
+++ b/Interface/AddOns/SVUI/packages/unit/elements/misc.lua
@@ -278,7 +278,7 @@ function MOD:CreateGPS(frame, centered)
local size = centered and 16 or 32
local gps = CreateFrame("Frame", nil, frame)
gps:Size(size, size)
-
+ gps.DefaultSize = size
if(centered) then
gps:Point("CENTER", frame, "CENTER", 0, 0)
else
@@ -436,7 +436,7 @@ function MOD:CreateXRay_Closer(frame)
close:RegisterForClicks("AnyUp")
close:SetAttribute("type","macro")
close:SetAttribute("macrotext","/clearfocus")
- close:Size(64,64)
+ close:Size(50,50)
close:SetFrameStrata("DIALOG")
close.icon=close:CreateTexture(nil,"ARTWORK")
close.icon:SetTexture("Interface\\Addons\\SVUI\\assets\\artwork\\Unitframe\\UNIT-XRAY-CLOSE")
diff --git a/Interface/AddOns/SVUI/packages/unit/frames.lua b/Interface/AddOns/SVUI/packages/unit/frames.lua
index 68c1d42..6720fb0 100644
--- a/Interface/AddOns/SVUI/packages/unit/frames.lua
+++ b/Interface/AddOns/SVUI/packages/unit/frames.lua
@@ -641,7 +641,7 @@ CONSTRUCTORS["focus"] = function(self, unit)
self.RaidIcon = MOD:CreateRaidIcon(self)
self.Range = { insideAlpha = 1, outsideAlpha = 1 }
self.XRay = MOD:CreateXRay_Closer(self)
- self.XRay:SetPoint("BOTTOMRIGHT", 20, -10)
+ self.XRay:SetPoint("RIGHT", 20, 0)
self:Point("BOTTOMRIGHT", SVUI_Target, "TOPRIGHT", 0, 220)
SuperVillain:SetSVMovable(self, L["Focus Frame"], nil, nil, nil, "ALL, SOLO")
@@ -1191,7 +1191,7 @@ local UpdateRaidSubUnit = function(self, key, db)
if not self:IsElementEnabled('RaidDebuffs')then
self:EnableElement("RaidDebuffs")
end
- local actualSz = numMin(db.rdebuffs.size, (db.height - 4))
+ local actualSz = numMin(db.rdebuffs.size, (db.height - 8))
rdBuffs:Size(actualSz)
rdBuffs:Point("CENTER", self, "CENTER", db.rdebuffs.xOffset, db.rdebuffs.yOffset)
rdBuffs:Show()