Disabling DIconLayouts resizing to children

I’ve managed to deal with it in my other addon, but appearently my solution doesn’t work with drag’n’drop panels.
I’ve tried:
-overriding Layout func, which ended in list resizing but new items not being visible, just the latest
-overriding OnModified, OnChildAdded, OnChildRemoved
I have even tried resizing it constantly in Think hook - didn’t help.

I don’t think code is needed, but here it is:


shop.cartListPanel = vgui.Create( 'coffee_panel', shop )shop.cartListPanel:SetSize( 290, 520 )
shop.cartListPanel:SetPos( 305, 30 )


shop.cartListScroll = vgui.Create( "DScrollPanel", shop.cartListPanel )
shop.cartListScroll:SetSize( 290, 520 )
shop.cartListScroll:SetPos( 0, 0 )


shop.cartList = vgui.Create( "DIconLayout", shop.cartListScroll )
shop.cartList:SetSize( 290, 520 )
shop.cartList:SetPos( 0, 0 )
shop.cartList:SetSpaceY( 2 )
shop.cartList:SetSpaceX( 0 )
shop.cartList:Receiver( 'itemAdd', function( panel, panels, wasDropped )
	if not wasDropped then return end
	shop.cartList:Add( panels[ 1 ] )
	panels[ 1 ]:Droppable( 'itemRemove' )
	cart[ panels[ 1 ].itemData.class ] = panels[ 1 ].itemData.cost
end )