Panel.SizeToContentsY
From GMod Wiki
Function | |
Syntax | Panel:SizeToContentsY( ) |
Description: | |
Resizes the panel so that it's height can fit all details inside. | |
Returns: | nil |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.SizeToContentsY]Panel.SizeToContentsY [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This will size myLabel to the fit all text inside of it. within a column |
---|---|
Used on | |
Code | myLabel:SizeToContentsY() |
Output | All text inside myLabel won't be cut off when adding more new lines. |