Garry's Mod Wiki

DSizeToContents:SetSizeX

  DSizeToContents:SetSizeX( boolean sizeX )

Description

Sets whether the DSizeToContents panel should size to contents horizontally. This is true by default.

Arguments

1 boolean sizeX
Whether the panel should size to contents horizontally.