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

Tilesjs does not aware of scrollbar width. #4

Open
blackzabaha opened this issue Dec 12, 2012 · 0 comments
Open

Tilesjs does not aware of scrollbar width. #4

blackzabaha opened this issue Dec 12, 2012 · 0 comments

Comments

@blackzabaha
Copy link

Hi!
Tilesjs is really great work.

but I found that Tilesjs does not aware of scrollbar width, makes some part of all rightmost DIVs always hide behind the scrollbar.

This also happened with demo that included in download file with all major browsers.

NOTE: Look like pulse.me website does not have this issue.

I try to solve my work by override getContentWidth, still not exactly calculate the correct width but look a lot better.

Grid.prototype.getContentWidth = function() {
// by default, the entire container width is used when drawing tiles
// return this.$el.width();
return this.$el[0].clientWidth;
};

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