How to make textbox not shift upwards when keyboard is open

On my iphone, when I open the keyboard everything gets shifted upwards so only the bottom of the texbox is visible. How would I make this so the top of the textbox is visible? I can’t find anything about this.

Don’t think there’s a way to stop it unfortunately. Judging by the fact that the Roblox menu button is moving, that would lead me to believe that it’s a feature of iOS, not some Roblox implementation. IIRC, you’re still able to scroll with the keyboard open but I don’t think there’s a way to stop the automatic scrolling.

The only thing I can think of would be to tween your entire UI down when .Focused is fired on your TextBox but it may not be the most accurate thing ever.

Why not tween the UI itself down? That may help?

I don’t think you could stop that, but you could try aligning the textbox text to the bottom on all or on just mobile devices

Heres a quick example I made just check for the keyboard becoming visible then change the position of the textbox

local UserInputService = game:GetService("UserInputService")

UserInputService:GetPropertyChangedSignal("OnScreenKeyboardVisible"):Connect(function()

local OnScreenKeyboardSize = UserInputService.OnScreenKeyboardSize --a vector2

--move the textbox down according to the screenkeyboardsize

end)
1 Like

Tweening it down might work, but consistently calculating this would be hard. My idea is for separate one line textbox below might work.