Skip to content

Commit

Permalink
Castbar update defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-HeinzSchneider committed Aug 17, 2024
1 parent 0105c72 commit fa71a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Mixin/Castbar.mixin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,9 @@ function DragonFlightUICastbarMixin:AdjustPosition()
local rows = self:GetParent().auraRows or 0
local auraSize = 22

local delta = (rows - 1) * (auraSize + 2)
local delta = (rows - 2) * (auraSize + 2)

if ((not parent.buffsOnTop) and rows > 1) then
if ((not parent.buffsOnTop) and rows > 2) then
--
self:SetPoint(state.anchor, parent, state.anchorParent, state.x, state.y - delta)
else
Expand Down
4 changes: 2 additions & 2 deletions Modules/Castbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ local defaults = {
anchor = 'TOP',
anchorParent = 'BOTTOM',
x = -20,
y = 0,
y = -20,
sizeX = 150,
sizeY = 10,
preci = 1,
Expand All @@ -50,7 +50,7 @@ local defaults = {
anchor = 'TOP',
anchorParent = 'BOTTOM',
x = -20,
y = 0,
y = -20,
sizeX = 150,
sizeY = 10,
preci = 1,
Expand Down

0 comments on commit fa71a78

Please sign in to comment.