How to move scrolling frame while editing text?

I have a textbox in a scrolling frame and was wondering how to scroll the scrolling frame while still having text focused

1 Like

Do you mean having it on top?
If so, you just have to unparent it from the scrolling frame.

You can use CanvasPosition to programmatically move your canvas along with your text! You can use TextBounds and AbsoluteSize to calculate when your text begins to overflow your scrolling canvas. Hope this helps! :smile:

The textbox should still be in the scrolling frame @BriefYayyayyay

Sorry for the late response I was asleep; I already had this feature in place, I’m asking how to keep scrolling while the textbox is focused on.

Example: The box around the blah is what is currently visible from the scrolling frame and the | in between the blahs is the users text cursor. I don’t want to un-focus the textcursor nor move it to where it can visisble. All I want is to still move scrolling frame up while it’s still focused.

blah blah blah blah
blah blah blah blah
blah blah blah blah


|blah blah blah blah|
|blah blah blah blah|
|blah blah blah blah|
|blah blah| blah blah|