iOS Question B4i Bug? View doesn't swipe up when Keyboard appears since updating to B4i v7.00

Rokko

Member
Licensed User
After updating b4i to v7.00 and after X-Code update views doesn't swipe up when Keyboard appears. It only happens on devices with iOS lager than 12 (so on most iPhones now). Apps compiled with older B4i versions are still working on iOS 14.

It seems that the root panel can't be pushed up into an negativ Y offset anymore.

Is this a B4i library bug? How to solve this Problem?

Thanks in advice

Regards
 
Last edited:

Rokko

Member
Licensed User
Yes with:

B4X:
pg_KeyboardStateChanged (Height As Float)

It only happens to TextFields at the Bottom when the page has to be pushed into an negative Y offset
 
Upvote 0

Rokko

Member
Licensed User
I still need some time with a small example but while trying to find the mistake we figured out that neither
B4X:
pg_KeyboardStateChanged (Height As Float)
nor
B4X:
Page.RootPanel.CalcRelativeKeyboardHeight(Height)
calculates the right height. You can check this with
Code:
-(void)keyboardWasShown:(NSNotification *)notification {
    
    NSDictionary* info = [notification userInfo];
    
    CGSize keyboardSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
    
  
    NSLog(@"keyboard size %@",NSStringFromCGSize(keyboardSize));
            
}

or have a look at http://www.idev101.com/code/User_Interface/sizes.html

Regards
 
Upvote 0

gglaz

Member
Licensed User
Longtime User
My colleague is on vacation so I write about our problems via this account.

1st problem: pg.RootPanel.SetLayoutAnimated
In some modules the page is no longer shifted to the negative y area. The problem has only existed since the update.

2nd problem: Private Sub pg_KeyboardStateChanged (Height As Float)does not return the correct keyboard height.

Regards
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top