-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Adjusted top margin of heatmap plot to get it working in V2 #1361
Changes from 2 commits
fde7643
91a60f0
0b147f7
a62d9ad
a803248
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,11 @@ require('./heatmap.css'); | |
// https://jsfiddle.net/cyril123/h0reyumq/ | ||
function heatmapVis(slice) { | ||
function refresh() { | ||
// Header for panel in explore v2 | ||
const header = document.getElementsByClassName('panel-title'); | ||
const headerHeight = header ? header[0].offsetHeight : 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i would use can you confirm that this change doesn't affect the current explore view too much? |
||
const margin = { | ||
top: 10, | ||
top: 20 + headerHeight, | ||
right: 10, | ||
bottom: 35, | ||
left: 35, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry one more comment, are we sure there will only be one
panel-title
class on the page? will it be the first one?