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

Scroll with javascript #9

Open
luiscruz opened this issue Jan 29, 2013 · 2 comments
Open

Scroll with javascript #9

luiscruz opened this issue Jan 29, 2013 · 2 comments

Comments

@luiscruz
Copy link

Hi,

I need to scroll a div to the bottom with javascript.
I'm doing it calling the method I created:

function scroll_to_bottom(elem){
    $(elem).each(function( index ) {
        $(this).scrollTop($(this)[0].scrollHeight)
    });
}

Unfortunately, it doesn't work, though it works fine when I'm not using lionbars.

@luiscruz
Copy link
Author

I saw that you already have an implemented method 'scrollToBottom', but I don't know how to call it.

Thanks,
Luis

@chan-dra
Copy link

152d1fa
Hope this helps.

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

2 participants