Moving TextBox [Mobile]

I have an autocomplete functionality that uses a textlabel underneath a textbox to show the autocomplete suggestion. It works perfectly on computers, but on mobile, the TextBox moves around causing the text not to line up properly, ruining the visual aspect of the autocomplete.

At first, I was just going to use rich text markup to add the autocomplete suggestion to the end of the textbox text, but since textboxes do not support rich text, you would see the raw text formatting.

Is there a way to prevent the textbox from moving around or an alternative method to displaying autocomplete suggestions that would solve my issue?

2 Likes

So I had a thought that perhaps the keyboard coming up causes some elements to shift.
This thread encountered the similar issue and made an elaborate workaround.
Also, some research showed that simply using the UserInputService to listen for when the keyboard is brought up, to apply an offset to the UI and vice versa

1 Like