Garry's Mod Wiki

Panel:StretchToParent

  Panel:StretchToParent( number offsetLeft = nil, number offsetTop = nil, number offsetRight = nil, number offsetBottom = nil )

Description

Sets the dimensions of the panel to fill its parent. It will only stretch in directions that aren't nil.

Arguments

1 number offsetLeft = nil
The left offset to the parent.
2 number offsetTop = nil
The top offset to the parent.
3 number offsetRight = nil
The right offset to the parent.
4 number offsetBottom = nil
The bottom offset to the parent.