iOS Question Keyboard hides TextViews in Scrollview after IOS 11.4 update

Segga

Member
Licensed User
I've been using CalcRelativeKeyboardHeight in pg_KeyboardStateChanged to make the TextViews in my ScrollView layout accessible.
B4X:
sv.Height = Min(sv.CalcRelativeKeyboardHeight(Height), pg.RootPanel.Height-10-sv.Top)
Since updating to IOS 11.4, the bottom TextViews are now totally hidden by the keyboard.
Any advice appreciated.
 

Erel

Administrator
Staff member
Licensed User
I'm not sure why it happens however you can solve it by putting the ScrollView inside a panel.
B4X:
Sub pg_KeyboardStateChanged (Height As Float)
   Panel1.Height = Min(Panel1.CalcRelativeKeyboardHeight(Height), pg.RootPanel.Height - 10 - Panel1.Top)
   svUserInfo.Height = Panel1.Height
End Sub

I recommend you to delete all the designer script and use anchors instead. It will simplify your layout.
 
Upvote 0
Top