PANEL/OnSizeChanged

From Garry's Mod
Jump to: navigation, search
 PANEL:OnSizeChanged( )

Description

Called just after the panel size changes.

All size functions will return the new values when this hook is called.

WARNING

Changing the panel size in this hook will cause an infinite loop!

Arguments

number newWidth

The new width of the panel

Arguments

number newHeight

The new height of the panel
Personal tools
Navigation