Garry's Mod Wiki

Panel:SetWidth

  Panel:SetWidth( number width )

Description

Sets the width of the panel.

Calls PANEL:OnSizeChanged and marks this panel for layout (Panel:InvalidateLayout).

See also Panel:SetSize.

Arguments

1 number width
The new width of the panel.