Segga Member Licensed User Longtime User Jun 2, 2018 #1 I've been using CalcRelativeKeyboardHeight in pg_KeyboardStateChanged to make the TextViews in my ScrollView layout accessible. Code: Copy 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.
I've been using CalcRelativeKeyboardHeight in pg_KeyboardStateChanged to make the TextViews in my ScrollView layout accessible. Code: Copy 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 B4X founder Staff member Licensed User Longtime User Jun 3, 2018 #2 Can you upload a small project that demonstrates it? Upvote 0
Segga Member Licensed User Longtime User Jun 3, 2018 #3 Erel said: Can you upload a small project that demonstrates it? Click to expand... Attachments TextViewsInScrollView.zip TextViewsInScrollView.zip 10 KB · Views: 801 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2018 #4 I'm not sure why it happens however you can solve it by putting the ScrollView inside a panel. Code: Copy 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
I'm not sure why it happens however you can solve it by putting the ScrollView inside a panel. Code: Copy 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.