Comments (4)
Can you provide steps to reproduce this issue?
from beakerx.
This issue is not Beaker specific and has to do with Chrome's inconsistent behavior(bug?) in different versions and how flotr2 handle scrolling.
flotr2 calculate Y by subtracting both document.body.scrollTop
and document.documentElement.scrollTop
:
I think their reasoning behind this is to address the different behavior of different browsers. More specifically, it is assuming and relying on the behavior of FireFox where document.body.scrollTop is always 0, and for Chrome, document.documentElement.scrollTop is always 0. (here is one related stackoverflow post, and as a comment there suggested, a better way is (document.documentElement.scrollTop || document.body.scrollTop)
).
However, this assumption does not hold true in some version of Chrome. Here is a screenshot comparing Version 35.0.1862.2 canary(lef) and Chrome Version 32.0.1700.107(right).
As one can see, in v32, on the right, both document.body.scrollTop
and document.documentElement.scrollTop
has same and non-zero value, and flotr2 code is subtracting the same value twice.
Possible solution would be to fork flotr2 and change it to use the '||' logic mentioned above. Or, do nothing as seems in newer version of Chrome, the old behavior flotr2 depends on returned.
from beakerx.
is this bug what they are talking about here?
HumbleSoftware/Flotr2#235
ang why did you close this?
from beakerx.
Because like I mentioned A. it is not Beaker specific B. the issue doesn't appear to happen in the latest version of Chrome. As for the issue you referred, it is not exactly the same, but the solution proposed there is exactly what I was talking about.
from beakerx.
Related Issues (20)
- IPython won't print output after installation of optional beakerx modules HOT 5
- JScript error on Autotranslation doc
- How to use a custom version of Clojure in BeakerX?
- Scala Kernel Error
- OpenJDK version?
- Where to get BeakerX 1.3.0 jar?
- Missing file beakerx_display.js HOT 2
- Any plans for JDK17 support? HOT 1
- Errors when trying to use Python autotranslation in JVM kernels HOT 1
- openjdk 11 not compatible HOT 1
- Any plans for spark 3.x support?
- Installation fails with non-verbose conflict errors HOT 6
- BeakerX 1.4.1 from conda-forge forced to use openjdk 8.0.121? HOT 3
- doesnt install for m1 mac HOT 1
- Groovy kernel user install HOT 1
- How to setup variables for a kernel?
- pip install failed HOT 1
- setup.py install_requires add ipywidgets version
- fix master/doc/groovy/AutoTranslation.ipynb
- Installation instructions to run BeakerX within Google Colab notebooks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beakerx.