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

Horizontal Scroll issue. And about 1st issue #2

Open
duhnochi opened this issue Dec 2, 2013 · 2 comments
Open

Horizontal Scroll issue. And about 1st issue #2

duhnochi opened this issue Dec 2, 2013 · 2 comments

Comments

@duhnochi
Copy link

duhnochi commented Dec 2, 2013

    /** Fix bug with resizing & horizontal*/
    $(window).resize(function(){
        if(copiedHeader){
            $('#hd' + idObj).width($('#' + idObj).width());
        }
        fix_horizontal();
    });

    /**
     * Fix bug with horizontal scroll
     */
    $(window).scroll(function(){
        fix_horizontal();
    })
@ghost
Copy link

ghost commented Jan 23, 2014

What's fix_horizontal()? I can't find it anywhere.

@duhnochi
Copy link
Author

Ouh, pls, sorry ))

    function fix_horizontal() {
        $('#hd' + idObj).css('left', (window.pageXOffset * -1) + $('#' + idObj).offset().left);
    }

That's all )) It's works for me

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