Panel.SizeToContentsY

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:SizeToContentsY( )
Description:
Resizes the panel so that it's height can fit all details inside.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.SizeToContentsY]Panel.SizeToContentsY [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis will size myLabel to the fit all text inside of it. within a column
Used onNewerClient.png
Code
myLabel:SizeToContentsY()
OutputAll text inside myLabel won't be cut off when adding more new lines.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox