Garry's Mod Wiki



  PANEL:PerformLayout( number width, number height )


Called whenever the panels' layout needs to be performed again. This means all child panels must be re-positioned to fit the possibly new size of this panel.

This can be triggered in numerous ways:

  • Panel:InvalidateLayout was called this or previous frame (depending on the argument)
  • A child element was added to this panel (TODO: Verify me)
  • The size of this panel has changed
Do NOT call this function directly. Use Panel:InvalidateLayout instead!


1 number width
The panels current width.
2 number height
The panels current height.

Special Pages



Render Time: 62ms

DB GetPage 42
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 8