vgui shift to new line if text width > x

as in title, I cant do it. I know it can be done with draw.drawtext using
manually but I want to make it auto.

You cannot, you’ll have to use a string wrapping function like the one here:


Try using a

DLabel with


That still uses a string wrapping function internally, no reason to use it unless you’re already using a panel.

I still have to know if that label is wrapped or not because that label will be child of a panel and I have to extend that panel if it is wrapped

It says vgui in the title of this thread

[editline]5th September 2017[/editline]

DLabel:SetAutoStretchVertical or

Panel:SizeToContents might work