Revision Difference
Panel:SizeToContentsX#550936
<function name="SizeToContentsX" parent="Panel" type="classfunc">
	<description>
Resizes the panel object's width to accommodate all child objects/contents.
Only works on <page>Label</page> derived panels such as <page>DLabel</page> by default, and on any panel that manually implemented <page>Panel:GetContentSize</page> method.
<note>You must call this function **AFTER** setting text/font or adjusting child panels.</note>
	</description>
	<realm>Client</realm>⤶
	<realm>Client and Menu</realm>⤶
	<args>
		<arg name="addVal" type="number" default="0">The number of extra pixels to add to the width. Can be a negative number, to reduce the width.</arg>
	</args>
</function>
 Garry's Mod
			Garry's Mod 
		 Rust
			Rust 
		 Steamworks
			Steamworks 
		 Wiki Help
			Wiki Help