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

Newly rendered scrollable positioned incorrectly when browser scrollbar triggered #5

Closed
julianlam opened this issue Nov 21, 2011 · 1 comment

Comments

@julianlam
Copy link
Owner

Assuming a website is designed in such a way that the content is resized to fit the user's screen using javascript. An increase of even 1 pixel will cause the browser's scrollbar to appear.

As Scrollable now works similar to tips, in that the element itself is rendered at the bottom of the page, this inadvertently causes the scrollbar to appear for 50 milliseconds, before .reposition(); causes it to go away.

However, the mere presence of the scrollbar causes .reposition(); to calculate the final left value incorrectly, and thus it is moved to the wrong location.

Defining top and left starting values in the scrollbar container's CSS fixed this problem.

Fix has been pushed to master.

@julianlam
Copy link
Owner Author

There was a related display bug in which the knob was visible for 50 milliseconds, as the default style for the container/knob is visible.

Setting a default opacity of 0 (and hidden visibility) and rigging initialize(); to force the element to show fixed the problem.

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