Skip to content

Commit

Permalink
Pet group bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Mar 4, 2022
1 parent 4dac18f commit 9025a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Aptechka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2221,7 +2221,7 @@ function AptechkaHeader.UpdatePoints(hdr, unitGrowth, groupGrowth, maxGroupsInRo
hdr:SetAttribute("columnSpacing", AptechkaDB.profile.unitGap)
hdr:SetAttribute("unitsPerColumn", 5*maxGroupsInRow)
local columnAnchorPoint = reverseGroupGrowth
if hdr.isPetGroup then
if hdr.isPetGroup and not Aptechka.db.profile.petGroupAnchorEnabled then
columnAnchorPoint = groupGrowth
end
hdr:SetAttribute("columnAnchorPoint", columnAnchorPoint) -- the anchor point of each new column (ie. use LEFT for the columns to grow to the right)
Expand Down Expand Up @@ -2345,7 +2345,7 @@ function Aptechka.CreateHeader(self,group,petgroup)
f:SetAttribute("columnSpacing", AptechkaDB.profile.unitGap)
local groupGrowth = AptechkaDB.profile.groupGrowth
local columnAnchorPoint = reverse(groupGrowth)
if f.isPetGroup then
if f.isPetGroup and not Aptechka.db.profile.petGroupAnchorEnabled then
columnAnchorPoint = groupGrowth
end
f:SetAttribute("columnAnchorPoint", columnAnchorPoint)
Expand Down

0 comments on commit 9025a94

Please sign in to comment.