Panel/SetSize

From Garry's Mod
Jump to: navigation, search
 Panel:SetSize( )

Description

Sets the size of the panel.

Calls PANEL:OnSizeChanged and marks this panel for layout (Panel:InvalidateLayout).
See also Panel:SetWidth and Panel:SetHeight.

NOTE

If you wish to position and re-size panels without much guesswork and have them look good on different screen resolutions, you may find Panel:Dock useful

Arguments

number width

The width of the panel.

Arguments

number height

The height of the panel.
Personal tools
Navigation