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

Fix HiDPI over-scrolling issue #303

Merged
merged 1 commit into from
Jul 7, 2014
Merged

Fix HiDPI over-scrolling issue #303

merged 1 commit into from
Jul 7, 2014

Conversation

danvk
Copy link
Owner

@danvk danvk commented Jun 25, 2014

If you visit https://rawgit.com/danvk/dygraphs/master/tests/demo.html on a "retina" device and shrink the window to match the width of the chart, you'll find that there's a mysterious horizontal scroll bar.

This was due to dygraph-canvas.js mysteriously re-setting the width of g.graphDiv. It's not clear why it would do this, since it's already been set in Dygraph.prototype.resizeElements_. It's also unclear why it would set the width and not the height. I'm guessing this is a relic -- the tests pass with the line removed.

@danvk
Copy link
Owner Author

danvk commented Jun 25, 2014

@hulkholden mind taking a look at this?

@danvk
Copy link
Owner Author

danvk commented Jul 7, 2014

There were no comments, so I'm merging this.

danvk added a commit that referenced this pull request Jul 7, 2014
Fix HiDPI over-scrolling issue
@danvk danvk merged commit 88bbada into master Jul 7, 2014
@mirabilos mirabilos deleted the fix-hidpi branch January 13, 2023 20:21
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

Successfully merging this pull request may close these issues.

2 participants