1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    20
    Vote Rating
    1
    bstrappazzon is on a distinguished road

      0  

    Default Unanswered: Hiding and showing address bar in Safari mobile

    Unanswered: Hiding and showing address bar in Safari mobile


    Hi all,

    I'm developping a mobile web site with sencha Touch 2.0 and I would like to hide the safari mobile address bar when user scroll down and show it back when he scroll up and reach the top of the page.

    This is the common behavior of web site with scrolling bar.

    I already tried to add this :
    Code:
    viewport : {
            autoMaximize: true
    },
    to my application definition but this is definitively not having the wanted effect as the application shows in fullscreen without address bar but we are not able to make it showing back.

    Does anyone has an idea on how to do This?
    I'm pretty sure I'm not the first one who want its mobile webSite to works this way

    Thanks a lot

    Benjamin

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,581
    Vote Rating
    433
    Answers
    3100
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    So it hides the address bar but you can't get back to it?
    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.

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

      0  

    Default


    Yes, exactly.

    On safari mobile, once a web site has a vertical scrolling bar, the address bar scroll down with the entire page on it shows back when you scroll up to the top of the page.

    From what I understand, the browser has this behavior if the page height exceed the screen size.
    Tell me if I'm wrong but sencha viewport height just fit the screen height and the scrolling is handle in an inner container by sencha?

    Do you have a trick to make this bar showing and hiding when needed?

    Anyway thanks for yours answers

    Benjamin