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

persistent 10-ish px scroll bar area on resize #34

Open
joshp23 opened this issue Nov 5, 2016 · 1 comment
Open

persistent 10-ish px scroll bar area on resize #34

joshp23 opened this issue Nov 5, 2016 · 1 comment

Comments

@joshp23
Copy link

joshp23 commented Nov 5, 2016

This script performed well in my project with the exception of an apx 10 to 20 extra pixels that would always overflow vertically, resulting in a scroll bar with a very small scroll area, regardless of the size of the responsive frame's contents. To fix this, I had to change line 82 from

    elem.css('height', height + 'px');

to this

    elem.css('height', (height+20) + 'px');
@antonandreyev
Copy link

I confirm the issue. Another option to fix it (on the client side!) is to change 120 line from
var h = document.body.offsetHeight;
to
var h = document.body.offsetHeight + 20;

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