Skip to content

IOS Keyboard click outside page jump #6055

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

Closed
raducostea opened this issue Apr 6, 2016 · 8 comments
Closed

IOS Keyboard click outside page jump #6055

raducostea opened this issue Apr 6, 2016 · 8 comments

Comments

@raducostea
Copy link

Hello,

Check out the following video: https://vimeo.com/161755036

First 2 times i am using the Done button from the keyboard to close the keybord which works very nice. The next 2 times i am clicking on the first input, which is a readonly input so i cannot focus. If you see, the keyboard gets closed but the entire page jumps a little. Take a look at the top header bar.

This its a blank ionic 2 application started with command
ionic start testinput blank --v2 --ts

Here is the ionic info
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.24
Ionic App Lib Version: 2.0.0-beta.14
ios-deploy version: 1.8.5
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.1
Xcode version: Xcode 7.3 Build version 7D175

This recording was done directly from an Iphone 6 IOS 9.3

The page contains simple elements inside a ion-content

Is there something i can do about this? This happens each time you click outside of an input element. Even a button will behave like that.

@EvanWillms
Copy link

I would guess that this shares a root-cause with #5432. What's interesting to me is that the padding added to the ion-content to make space for the keyboard is being removed slowly in this context and not at all in others.

@raducostea
Copy link
Author

Yeah, the padding is removed, the issue is that the top of the page jumps only if i click on an element without input. The odd think is that ii attach the keyboard hide event on that element the keyboards slides down nicely.

@jgw96
Copy link
Contributor

jgw96 commented Jun 13, 2016

Hello all! Is this still an issue with the latest version of ionic 2? Thanks!

@jgw96 jgw96 added the needs: reply the issue needs a response from the user label Jun 13, 2016
@raducostea
Copy link
Author

@jgw96,

A temporarily fix for me was adding this inside theme/app.ios.css and disable keyboard scroll.

body {
    position:absolute;
    overflow: auto;
    width:100%;
    height:100%;
}

Not sure if this will do some harm to other components but i have a big app with a lot of components used and everything looks good.

@Ionitron Ionitron removed the needs: reply the issue needs a response from the user label Jun 14, 2016
@haroondilshad
Copy link

@jgw96 With beta-7 I'm still facing the issue

@jgw96
Copy link
Contributor

jgw96 commented Jun 21, 2016

@roncan Would you mind updating to the latest release (beta.9) and testing again please? Thanks for using Ionic! There were a couple of changes when we released beta.8, which you can read about here so you will need to do these changes for your app to work with beta.9.

@jgw96
Copy link
Contributor

jgw96 commented May 12, 2017

Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!

@jgw96 jgw96 closed this as completed May 12, 2017
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants