Garry's Mod Wiki

PANEL:PerformLayout

PANEL:PerformLayout

  PANEL:PerformLayout( number width, number height )

Description

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!

Arguments

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

Special Pages


Wikis

?

Render Time: 62ms

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