Garry's Mod Wiki

PANEL:OnSizeChanged

PANEL:OnSizeChanged

  PANEL:OnSizeChanged( number newWidth, number newHeight )

Description

Called just after the panel size changes.

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

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

Arguments

1 number newWidth
The new width of the panel
2 number newHeight
The new height of the panel

Special Pages


Wikis

?

Render Time: 55ms

DB GetPage 37
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 7