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

Scroller doesn't scroll down enough for input #689

Closed
abarriere opened this issue Feb 27, 2014 · 8 comments
Closed

Scroller doesn't scroll down enough for input #689

abarriere opened this issue Feb 27, 2014 · 8 comments
Assignees
Milestone

Comments

@abarriere
Copy link

Hi,
I have a similar issue than #314 with ionic 0.9.26 and android 4.3.
my configuration is :
www/config.xml : fullscreen=> false
www/index.html : viewport :initial-scale=1, maximum-scale=1, user-scalable=no

2014-02-27 13 11 20

When keyboard is up and I switch device orientation to landscape and then back to portrait, the scroller bar update and inputs became visible by scrolling.
2014-02-27 13 15 02

Did I forget something in configuration or in controller ?

@robdick
Copy link

robdick commented Feb 28, 2014

Hi,

Another config.xml entry which I've had some success with is:

<preference name="android-windowSoftInputMode" value="stateVisible|adjustResize" />    

Also, some details here on this specific setting:
http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

As the docs state, the default value for this setting is "adjustUnspecified" and indicates that window resizing is automatically determined however I'm not sure whether this is impacted at the native level due to there being a WebView at play, or whether the CordovaActivity is affecting the automatic behaviour differently.

From the sound of it the resize behaviour is triggering on the orientation change which is also making me think this could also be a issue with handling browser resize events too?

Hope this helps.

@abarriere
Copy link
Author

Hi,
I tried but it doesn't work. i also tried other other value from android documentation without result.

Did specific javascprit code is required in controller to watch windows resize event ?

@abarriere
Copy link
Author

I add alert to ionic.bundle.js in functiojn handleKeyboardChange().
The event listener on 'resize' work fine.
I still working on it!

@abarriere
Copy link
Author

here are the value from ionic.bundle.js
1: initial keyboard show :
alert('rememberedDeviceHeight : '+rememberedDeviceHeight): 615
alert('window.innerHeight : '+window.innerHeight) : 320
alert('elementHeight : ' +elementHeight) : 34
alert('deviceHeight : ' +deviceHeight) : 320
alert('elementDeviceTop : ' +elementDeviceTop) : 283
alert('elementScrollTop : ' +elementScrollTop) : 6

2 : after flipping to landscape and back to portrait.
modif javascript : alert
alert('rememberedDeviceHeight : '+rememberedDeviceHeight): 402
alert('window.innerHeight : '+window.innerHeight) : 320
alert('elementHeight : ' +elementHeight) : 34
alert('deviceHeight : ' +deviceHeight) : 320
alert('elementDeviceTop : ' +elementDeviceTop) : 305
alert('elementScrollTop : ' +elementScrollTop) : 6

I don't understand why rememberedDeviceHeight and elementDeviceTop change.

I also made lot of test with configuration in Androidmanifest.xml, config.xml and viewport.
I tested many combination of android-windowSoftInputMode but it still doesn't work.

@adamdbradley adamdbradley added this to the 1.0 Beta milestone Mar 3, 2014
@abarriere
Copy link
Author

To complete the case :
The page can be scroll when keyboard is open for the second time (no need device flip ).
The first time it's impossible even if i force a value for self.scrollTo()

@adamdbradley
Copy link
Contributor

I just pushed a large tap refactor to solve many of these issues:
https://github.com/driftyco/ionic/blob/master/test/unit/angular/service/tap.unit.js#L4

Would you be able to test the nightly build (1712 or later) and let us know if it solved this issue?
http://code.ionicframework.com/#nightly

Thanks

Related: #862 #740 #726 #691 #689 #365 #26 #1134 #1120 #1105 #1078 #772 #745

@adamdbradley
Copy link
Contributor

Closed from ae3318a

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 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 6, 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