Garry's Mod Wiki

Garry's Mod Wiki

  Panel:SizeToContentsY( number addVal = 0 )

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.

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

Arguments

1 number addVal = 0
The number of extra pixels to add to the height.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...