Panel.SizeToContentsX

From GMod Wiki

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


Examples

DescriptionThis will size myLabel to the fit all text inside of it. Along a single row.
Used onNewerClient.png
Code
myLabel:SizeToContentsX()
OutputAll text inside myLabel won't be cut off due to insufficient size upon the x(line length) axis.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox