Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    73
    Vote Rating
    1
    elad101 is on a distinguished road

      0  

    Default 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
    Browser versions tested against:
    • Safari 4
    Description: Steps to reproduce the problem:
    • Set the viewport: {autoMaximize: true}
    • add the app to bookmark menu run it again via bookmarks.
    The result that was expected:
    • Load again the app successfully from the bookmarks menu on the same page the app is opened
    The result that occurs instead:
    • The app hangs
    • Get an error: "timeout waiting for window.innerHeight"
    Test Case:
    Code:
         Ext.Loader.setConfig({
        enabled: true
    });
    
    Ext.application({
        requires: [
            'Ext.Ajax'
        ],
    
        viewport: {
            autoMaximize: true
        },
    HELPFUL INFORMATION Screenshot or Video: See this URL for live test case: http:// Debugging already done:
    • none
    Possible fix:
    • not provided
    Additional CSS used:
    • sencha-touch2.0.1 css
    Operating System:
    • Mac OS X Lion Using IOS 5 Siumlator
    • iOS 5.1 on iPhone

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I tried on the iOS simulator and don't get any errors.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    73
    Vote Rating
    1
    elad101 is on a distinguished road

      0  

    Default


    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.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Here are the steps I did...
    1. cd /path/to/sencha-touch-2.0.1.1
    2. sencha app create MyApp ../MyApp
    3. Opened app.js to add viewport : { autoMaximize : true }
    4. Opened safari and navigated to MyApp, no errors, url and dev bar hide as expected
    5. Add to bookmarks (not to homescreen)
    6. Open bookmark menu
    7. 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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User
    Join Date
    Feb 2012
    Posts
    73
    Vote Rating
    1
    elad101 is on a distinguished road

      0  

    Default


    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
    Code:
    viewport : { autoMaximize : true }
    then I added a bookmark-> opened it from the bookmarks and got the same error.
    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

  6. #6
    Sencha User
    Join Date
    Feb 2012
    Posts
    73
    Vote Rating
    1
    elad101 is on a distinguished road

      0  

    Default


    Does anyone have any ideas?
    Mitchell?!

  7. #7
    Sencha User
    Join Date
    Feb 2012
    Posts
    73
    Vote Rating
    1
    elad101 is on a distinguished road

      0  

    Default


    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:
    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);
            }
    Again this is Just a temporary solution.
    I hope that in the next version 2.0.2 this one will be fixed..

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi