Skip to content

Commit

Permalink
Fix participantTable excess row (#3381)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha authored Oct 14, 2023
1 parent 4c9a48e commit 591f8c0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ function ParticipantTable:displaySection(section)
sectionNode:node(self:displayEntry(entry):css('width', self.config.columnWidth .. 'px'))
end)

local nextColumn = (#entries % self.config.colSpan) + 1

Array.forEach(Array.range(nextColumn, self.config.colSpan),
function() sectionNode:node(self:empty()) end)
local currentColumn = (#entries) % self.config.colSpan
if currentColumn ~= 0 then
Array.forEach(Array.range(currentColumn + 1, self.config.colSpan), function() sectionNode:node(self:empty()) end)
end

self.display:node(sectionNode)
end
Expand Down

0 comments on commit 591f8c0

Please sign in to comment.