Skip to content

Commit

Permalink
Fixed Layout Test
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Feb 17, 2022
1 parent 5d0fa04 commit b460ed8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Aptechka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2129,6 +2129,7 @@ end


local AptechkaHeader = {}
helpers.AptechkaHeader = AptechkaHeader
function AptechkaHeader.MakePoints(prv_group, notreverse, unitGrowth, groupGrowth)
local p1, p2
local xgap = 0
Expand Down
6 changes: 4 additions & 2 deletions frame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3696,8 +3696,10 @@ local function FakeHeader_Arrange(hdr)
end
end

function Aptechka:CreateFakeGroupHeader()
function Aptechka:CreateFakeGroupHeader(id)
local frame = CreateFrame("Frame", nil, UIParent)
frame:SetID(id)
Mixin(frame, helpers.AptechkaHeader)
frame:SetFrameStrata("BACKGROUND")
frame.children = {}
for i=1,5 do
Expand All @@ -3719,7 +3721,7 @@ function Aptechka:CreateFakeGroupHeaders()
if Aptechka.testGroupHeaders then return end
Aptechka.testGroupHeaders = {}
for i=1,8 do
Aptechka.testGroupHeaders[i] = self:CreateFakeGroupHeader()
Aptechka.testGroupHeaders[i] = self:CreateFakeGroupHeader(i)
end
end

Expand Down

0 comments on commit b460ed8

Please sign in to comment.