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

Disable Header on Homeview #43

Open
wamd-bozem opened this issue Mar 3, 2013 · 0 comments
Open

Disable Header on Homeview #43

wamd-bozem opened this issue Mar 3, 2013 · 0 comments

Comments

@wamd-bozem
Copy link

I was wondering if there is a good solution to hide the header on certain views?

For Example: In my app I have a homescreen where I don't want a header. On all other views I would like to display the header with the back button as usual.

I came up with this somewhat ugly solution:

function pushView(view) {
    window.viewNavigator.pushView( view );

    if(view.title === 'Home')
    {
        jQuery('.viewNavigator_content').css('top', 0)
    }
    else
    {
       jQuery('.viewNavigator_content').css('top', '46px') 
    }    
}

This however requires to also check everytime I press the backbutton etc...

Is there a more elegant solution? Thanks in advance for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant