Skip to content

Commit

Permalink
Fixed up PR #1989
Browse files Browse the repository at this point in the history
  • Loading branch information
robotboy655 committed Jul 7, 2023
1 parent e3e6084 commit 017c8f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions garrysmod/lua/vgui/dlistview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,18 @@ function PANEL:DataLayout()
local y = 0
local h = self.m_iDataHeight

local alt = false
for k, Line in ipairs( self.Sorted ) do

if ( !Line:IsVisible() ) then continue end

Line:SetPos( 1, y )
Line:SetSize( self:GetWide() - 2, h )
Line:DataLayout( self )

Line:SetAltLine( k % 2 == 1 )
Line:SetAltLine( alt )
alt = !alt

if ( !Line:IsVisible() ) then continue end
y = y + Line:GetTall()

end
Expand Down

0 comments on commit 017c8f7

Please sign in to comment.