OK here's what I did:
Created a ScrollContainer
then added a MarginContainer
as a child, then added a RichTextLabel
as a child to the MarginContainer
.
For the RichTextLabel
I set the scroll_active=false so that its scrollbar wouldn't show. Then I adjusted the MarginContainer
's margin_right to my desired spacing.
Lastly, since I'm adding bbcode_text via gdscript, I needed to set the min height of the RichTextLabel
like so to get the ScrollContainer
's scrollbar to work:
self.rect_min_size.y = self.get_content_height()