Garry's Mod Wiki

Garry's Mod Wiki

  Panel:SetMinimumSize( number minW = nil, number minH = nil )

Description

Sets the minimum dimensions of the panel or object.

You can restrict either or both values.

Calling the function without arguments will remove the minimum size.

Arguments

1 number minW = nil
The minimum width of the object.
2 number minH = nil
The minimum height of the object.

Example

Restricting height but not width

local frame = vgui.Create( "DFrame" ) frame:SetSize( 800, 600 ) frame:SetSizable( true ) frame:SetMinimumSize( nil, 300 ) frame:MakePopup()

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...