Panel/SizeToContentsY

From Garry's Mod
Jump to: navigation, search
 Panel:SizeToContentsY( )

Description

Resizes the panel object's height to accommodate all child objects/contents.

Only works on Label derived panels such as DLabel by default, and on any panel that manually implemented Panel:GetContentSize method.

NOTE

You must call this function AFTER setting text/font or adjusting child panels.

Arguments

number addVal=0

The number of extra pixels to add to the height.
Personal tools
Navigation