Skip to content

Commit

Permalink
use PixelUtil to set point
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Sep 9, 2024
1 parent 1d0115f commit 96638f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnitFrames/UnitButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function U:UpdateUnitButtonPosition(unit, button)
local parent = CUF.unitButtons[unitLayout.parent]
local anchor = unitLayout.anchorPosition --[[@as ParentAnchor]]

button:SetPoint(anchor.point, parent, anchor.relativePoint, anchor.offsetX, anchor.offsetY)
PixelUtil.SetPoint(button, anchor.point, parent, anchor.relativePoint, anchor.offsetX, anchor.offsetY)
else
local x, y
if unit == const.UNIT.TARGET and unitLayout.mirrorPlayer then
Expand All @@ -36,7 +36,7 @@ function U:UpdateUnitButtonPosition(unit, button)
x, y = unpack(unitLayout.position)
end

button:SetPoint("CENTER", UIParent, "CENTER", x, y)
PixelUtil.SetPoint(button, "CENTER", UIParent, "CENTER", x, y)
end
end

Expand Down

0 comments on commit 96638f3

Please sign in to comment.