Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted top margin of heatmap plot to get it working in V2 (apache#1361
) * Adjusted top margin of heatmap plot to get it working in V2 Problem: The heatmap in V2 was shifted towards the top margin of slice container, this was because in v2 slice name header was part of the container body, while in v1 the header was separately defined in explore.html template. Solution: To get heatmap properly shown in V2, we need to take into account the height of the slice_name header. Adding to margin_top will shift the plot in V1 too, but it won't make a big difference to the look. Ideally when we renovate slice container in future PR we would defined a height for slice_name header and take it into account for all visualization files. * Added panel header height to margin_top for explore v2 * Use getBoundingClientRect to get header height * Use slice-header for id of panel-title
- Loading branch information