Garry's Mod Wiki


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


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.


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


Restricting height but not width

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

Page Links

Special Pages



Render Time: 27ms

Session 0
DB GetPage 4
Generate Html 1
SaveChanges 13
Render Body 0
Render Sidebar 7