Hybrid View
-
27 Aug 2012 12:40 PM #1
[2 - 2.1B2] Viewport is not expanding to full height after focus on address bar
[2 - 2.1B2] Viewport is not expanding to full height after focus on address bar
1. Open any ST 2.x app (haven't tested with ST 1) on an Android 4(.0.3) device, e.g. the kitchensink:
http://dev.sencha.com/deploy/touch/e...ink/index.html
Update: This issue is easy reproducable on Android 2 as well, see post #7 (http://www.sencha.com/forum/showthre...l=1#post883318)
2. Tap on the url in the address bar to select it and trigger the display of the keyboard. The keyboard will stay being displayed since the url is selected.
3. Hit the reload button
4. After the reload is done (make sure the keyboard is still shown) tap somewhere within the app to dismiss the keyboard
Actual Result:
The viewport isn't expanded to its full height, only ~half of the app is visible. Space of keyboard is kept blank.
This also happens for apps with viewport: autoMaximize: true.
I can reproduce this from ST 2.0 till 2.1 beta 2.
Sencha Touch 2.0:
Screenshot_2012-08-27-22-14-34.jpg
Sencha Touch 2.1 Beta 2:
Screenshot_2012-08-27-22-20-29.jpgOwner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
-
28 Aug 2012 4:52 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Is this with the native browser or Chrome? I don't have a 4.0.x device, my 4.1 Nexus 7 works like a charm but it's also using Chrome.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 Aug 2012 4:54 AM #3
Native browser. Don't have a 4.1 device, so not sure if it's happening there on the native browser.
I have such keyboard space issues also on Android 2 and in other cases, but this case was at least easily reproducible for me.
Thanks.Owner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
-
28 Aug 2012 5:18 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 Aug 2012 7:44 AM #5
Ok yes, thanks. I will concentrate on finding a reproducible case on Android 2.x where we're seeing similar keyboard space issues.
Owner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
-
30 Aug 2012 9:03 AM #6
It seems that the reason for this behavior is that because the keyboard is shown since the beginning, Viewport's "stretchHeights" is set to the height that the viewport has while the keyboard is shown.
Once set, stretchHeights isn't reset (because of the "if (!height)" condition) throughout the app session.
I guess this is fixable, e.g. through the "resize" event that is fired when the keyboard is hidden.
On a side note,
it's a bit hard to fully understand the Default and Android viewport code since it isn't really documented and one of the more complex classes of ST.Owner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
You found a bug! We've classified it as
TOUCH-3364
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote