How do I make the scrollbar component appear and dissappear as necessary - based on the amount of text in the linked text box. It looks as though the scrollable pane component already has this functionality built in. The auto setting (see below) seems to be what I am looking for in the scrollbar component.

Scrollable Pane:
"Horizontal Scroll determines whether a horizontal scroll bar is displayed (true), not displayed (false), or displayed only when necessary (auto). The default setting is auto."

How do I acheive the "auto" functionality with the Scroll Bar Component?

Thank you.