Garry's Mod Wiki

Revision Difference

PANEL:OnSizeChanged#552790

<function name="OnSizeChanged" parent="PANEL" type="hook"> <ishook>yes</ishook>⤶ <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!</warning> </description> <realm>Client</realm> <predicted>No</predicted>⤶ <args> <arg name="newWidth" type="number">The new width of the panel</arg> <arg name="newHeight" type="number">The new height of the panel</arg> </args> </function>