Garry's Mod Wiki


  Panel:InvalidateParent( boolean layoutNow = false )


Calls Panel:InvalidateLayout on the panel's parent. This function will silently fail if the panel has no parent.

This will cause the parent panel to re-layout, calling PANEL:PerformLayout.

Internally sets LayingOutParent to true on this panel, and will silently fail if it is already set.


1 boolean layoutNow = false
If true, the re-layout will occur immediately, otherwise it will be performed in the next frame.