Skip to content

ION-Content Scroll is not Refreshing After Close the Keybaord #5764

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
hrpatidar opened this issue Mar 8, 2016 · 5 comments
Closed

ION-Content Scroll is not Refreshing After Close the Keybaord #5764

hrpatidar opened this issue Mar 8, 2016 · 5 comments

Comments

@hrpatidar
Copy link

ion-content scroll is not reset or refreshing after close the keyboard. Having incorrect content size on the all screens. I have attached screenshot of the device. Please check it.

Expected: It should be having proper scroll as per content height of the screens.

Steps:

  1. Tap on input field --> keyboard opens
  2. Tap on app back button from top nav bar --> keyboard closed and back to list screen(Could be any screen).
  3. On list screen keyboard is closed but the content is not having correct scroll --> there is some free space at the end of the ion-content. the free space is similar to keyboard height. Please help me out. I have updated the IONIC version as well with 1.2.4. But still facing.

screen shot 2016-03-08 at 6 29 18 am

If I have tap on any input field again --> open the keyboard --> tap on free area of screen -> close the keyboard properly --> Now I am not getting incorrect content size.
So It might be the keyboard is not refreshing the ionic content view.

I have also added the below code for closing the keyboard on every state change success event. But it is also does not reset the view. It is just closing the keyboard. But screen contains incorrect size of page. Added keyboard height as well.
cordova.plugins.Keyboard.close();

Ionic Version: 1.2.4

Browser & Operating System: iOS / Android

@jgw96
Copy link
Contributor

jgw96 commented Mar 11, 2016

Thanks for opening an issue with us! We appreciate the detailed info! Would you mind running ionic info and pasting the output here please? That will help us with debugging this issue.

@hrpatidar
Copy link
Author

Please let me know, How can I get this IONIC info?

@jgw96
Copy link
Contributor

jgw96 commented Mar 15, 2016

@hrpatidar Thanks for asking! Simply open your terminal (cmd if your on windows), navigate to your ionic project and then run ionic info.

@codespore
Copy link

Same thing happening here:

"name": "ionic-plugin-keyboard",
"version": "2.0.1",

Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.3.0
Xcode version: Xcode 7.2.1 Build version 7C1002

@jgw96
Copy link
Contributor

jgw96 commented Mar 21, 2016

Thanks for opening an issue with us! As this bug is a duplicate of #5432 i am going to close this issue. Please feel free to continue the conversation over there!

@jgw96 jgw96 closed this as completed Mar 21, 2016
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 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

3 participants