Garry's Mod Wiki

Revision Difference

Panel:StretchToParent#550944

<function name="StretchToParent" parent="Panel" type="classfunc"> <description>Sets the dimensions of the panel to fill its parent. It will only stretch in directions that aren't nil.</description> <realm>Client</realm>⤶ <realm>Client and Menu</realm>⤶ <args> <arg name="offsetLeft" type="number">The left offset to the parent.</arg> <arg name="offsetTop" type="number">The top offset to the parent.</arg> <arg name="offsetRight" type="number">The right offset to the parent.</arg> <arg name="offsetBottom" type="number">The bottom offset to the parent.</arg> </args> </function>