DCollapsibleCategory doesn't work with scrollpanel?

Whenever I try to include a DScrollPanel or any other panel including a scroll bar in a DCollapsibleCategory, after expanding and the contracting the category, further expansion attempts will fail to open the category correctly.


local Frame = vgui.Create( "DFrame" )
Frame:SetPos( 200,200 )
Frame:SetSize( 350, 300 )
Frame:SetTitle( "Panel" )
Frame:SetVisible( true )
Frame:SetDraggable( true )
Frame:ShowCloseButton( true )
Frame:MakePopup()
    
local DCollapsible = vgui.Create( "DCollapsibleCategory", Frame)    
DCollapsible:SetPos( 10, 35 )
DCollapsible:SetSize( 280, 250 )
DCollapsible:SetExpanded( 0 )
DCollapsible:SetLabel( "Collapsible" )

local scroll = vgui.Create( "DScrollPanel" )
scroll:SetSize( 270, 120 )
scroll:SetPos( 10, 10 )

local itemlist = vgui.Create( "DIconLayout", scroll)
itemlist:SetSize( 260, 100 )
itemlist:SetPos( 0, 0 )
itemlist:SetSpaceY( 5 )
itemlist:SetSpaceX( 260 )            
for i=1,10 do
	local label = itemlist:Add( "DLabel")
	label:SetPos( 5, 10 )
	label:SetText( "Empty "..i )
	label:SetColor( Color(0,0,0,255) )
end
DCollapsible:SetContents( scroll )


It works just fine when you first expand the category, but after that, the shape of the category header changes to what it does when expanded, but doesn’t actually expand or show its contents.
Simply removing the scroll panel returns it to normal function.

Am I overlooking something in my code or is this a bug?

Same issue here. Still using DPanelList - but I hate for that to randomly break when (if) it’s phased out.