We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3e6084 commit 017c8f7Copy full SHA for 017c8f7
garrysmod/lua/vgui/dlistview.lua
@@ -280,15 +280,18 @@ function PANEL:DataLayout()
280
local y = 0
281
local h = self.m_iDataHeight
282
283
+ local alt = false
284
for k, Line in ipairs( self.Sorted ) do
285
286
+ if ( !Line:IsVisible() ) then continue end
287
+
288
Line:SetPos( 1, y )
289
Line:SetSize( self:GetWide() - 2, h )
290
Line:DataLayout( self )
291
- Line:SetAltLine( k % 2 == 1 )
292
+ Line:SetAltLine( alt )
293
+ alt = !alt
294
- if ( !Line:IsVisible() ) then continue end
295
y = y + Line:GetTall()
296
297
end
0 commit comments