Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard banner is moved down into keys when iOS call banner activated #104

Open
ansonl opened this issue Sep 2, 2016 · 2 comments
Open

Comments

@ansonl
Copy link

ansonl commented Sep 2, 2016

Hi,

When the keyboard is initialized and the iOS call banner is activated, the banner view is moved down into the keys. This only occurs in portrait mode as shown below:
screen shot 2016-09-02 at 12 07 51 am

If the call banner is activated after the keyboard is initialized and setup, the banner is okay.

I looked through the code to try to figure out where a constraint could be going wrong, but was not able to find anything. It seems like a screensize is being hardcoded in somewhere that I can not locate.
Hopefully this is an easy fix for you/someone who has worked with this longer to make.

@Ankish
Copy link

Ankish commented May 25, 2017

Any fix for this ?

@Ankish
Copy link

Ankish commented May 25, 2017

// Add this

  • (void)viewDidLayoutSubviews {
    [super viewDidLayoutSubviews];

    CGRect frame = self.view.superview.frame;
    CGFloat dy = CGRectGetMinY(frame);
    if (dy > 0.f) {
    frame.origin.y = 0.f;
    frame.size.height += dy;
    [self.view.superview setFrame:frame];
    }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants