Garry's Mod Wiki

Garry's Mod Wiki

  Panel:InvalidateLayout( boolean layoutNow = false )

Description

Causes the panel to re-layout in the next frame. During the layout process PANEL:PerformLayout will be called on the target panel.

You should avoid calling this function every frame.

Using this on a panel after clicking on a docked element will cause docked elements to reorient themselves incorrectly. This can be fixed by assigning a unique Panel:SetZPos to each docked element.

Issue Tracker: 2574

Arguments

1 boolean layoutNow = false
If true the panel will re-layout instantly and not wait for the next frame.

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 four times a day. Edits and history are not available.

Last Parsed: Loading...