-
2 Jul 2012 1:05 AM #1
Hide Url bar gets error:timeout waiting for window.innerHeight when added to bookmark
Hide Url bar gets error:timeout waiting for window.innerHeight when added to bookmark
REQUIRED INFORMATION Ext version tested:
- Ext 2.0.1
- Safari 4
- Set the viewport: {autoMaximize: true}
- add the app to bookmark menu run it again via bookmarks.
- Load again the app successfully from the bookmarks menu on the same page the app is opened
- The app hangs
- Get an error: "timeout waiting for window.innerHeight"
HELPFUL INFORMATION Screenshot or Video: See this URL for live test case: http:// Debugging already done:Code:Ext.Loader.setConfig({ enabled: true }); Ext.application({ requires: [ 'Ext.Ajax' ], viewport: { autoMaximize: true },- none
- not provided
- sencha-touch2.0.1 css
- Mac OS X Lion Using IOS 5 Siumlator
- iOS 5.1 on iPhone
-
2 Jul 2012 7:26 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,623
- Vote Rating
- 434
I tried on the iOS simulator and don't get any errors.
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.
-
2 Jul 2012 9:17 AM #3
Please try the following:
1.open in safari
2. Add a bookmark (not add to home screen)
3. Keep the safari open
4. Open bookmarks menu
5. Open the app via bookmarks menu
I' be tried it via iPhone and via simulator.
And I tried it also on sencha's carousel example.
-
2 Jul 2012 9:33 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,623
- Vote Rating
- 434
Here are the steps I did...
- cd /path/to/sencha-touch-2.0.1.1
- sencha app create MyApp ../MyApp
- Opened app.js to add viewport : { autoMaximize : true }
- Opened safari and navigated to MyApp, no errors, url and dev bar hide as expected
- Add to bookmarks (not to homescreen)
- Open bookmark menu
- Opened the app, no errors, url and dev bar hide as expected
This was in the iOS Simulator. Tried the same steps with iPhone 4S and still not errors.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.
-
2 Jul 2012 9:41 AM #5
I'm using sencha touch 2.0.1
Do you think it has to do with this?
Please go to the following link and do the same steps as above.
http://secure.staging-first-services...asino/app.html
Ps
It didn't work on carousel example in sencha touch 2.0.1 library too
(edit)
I opened the carousel example in ST 2.0.1.1 and I added to app.js
then I added a bookmark-> opened it from the bookmarks and got the same error.Code:viewport : { autoMaximize : true }
Ps
Please try to open the bookmark on an existing page, not a new one.Last edited by elad101; 3 Jul 2012 at 5:31 AM. Reason: clarification
-
4 Jul 2012 4:50 AM #6
-
5 Jul 2012 7:14 AM #7
Hi,
First I found this bug ( It might be related to mine)
http://www.sencha.com/forum/showthre...incorrect-args
second, the way I temporarily solved the issue is:
1. I set the autoMaximize to false.
2. I added to the app.js this code:
Again this is Just a temporary solution.Code:window.addEventListener('touchstart',function(){ if ((window.scrollY == 0)) { window.scrollTo(0, 1); } }); if ((window.scrollY == 0)) { if (("standalone" in window.navigator) && !window.navigator.standalone){ Ext.Viewport.setHeight('416px'); } else{ Ext.Viewport.setHeight('460px'); } setInterval(function() { if (scrollFlag){ window.scrollTo(0, 1); scrollFlag = false; } }, 100); }
I hope that in the next version 2.0.2 this one will be fixed..
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote