UI moves upwards and offscreen when a mobile user interacts with it

When a mobile user interacts with my TextBox, the UI moves upwards and off the screen so that part of it isn’t visible anymore. I was hoping there was perhaps a property in the TextBox to prevent this but it doesn’t seem that there is, or perhaps I’ve missed it. Is there a solution to this?

1 Like

Theres a size thing on objects like part or gui objects.the gui objects use UDim2 and parts are using Vector3. When you only use offset size in UDim2, your gui will go anywhere like off screen or moving down with other devices.but if you use the scale size,your gui objects will be resized for devices screen size.and you can add uirespectratio to stay the gui object in same size.

If you are not using scale.you should start now.

UDim2.new(0,0.6,0,0.2) -- this one might not resize correctly in other devices.
UDim2.new(0.3,0,0.3,0) -- this one should get resized for the device screen.so it should dont move anywhere.

tell me if you need any help.

When you tap on the TextBox, it moves off screen. The size of the GUI is fine, it just moves upwards and I don’t want it to do that.

1 Like

can you send a video or a image?

Hey there, sorry for the late response I was busy, but I’m here now.

In the video, the GUI moves up so the keyboard doesn’t cover it, but I want the GUI to stay in the same place. Is there a way to disable this?