Garry's Mod Wiki

Panel:InvalidateParent

  Panel:InvalidateParent( boolean layoutNow = false )

Description

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.

Arguments

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