Skip to content

Commit

Permalink
Include height of bottom margin in chart parent to reveal X axis (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyrickay authored and mLuby committed Jun 21, 2017
1 parent 978bb7b commit f377c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixins/coordinate-grid-raster-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ export default function coordinateGridRasterMixin (_chart, _mapboxgl, browser) {

_parent
.attr("width", width * pixelRatio)
.attr("height", height * pixelRatio)
.attr("height", height + margins.bottom * pixelRatio)

if (prevWidth !== _chartBody.style("width") || prevHeight !== _chartBody.style("height")) {
// TODO(croot): What about when the margins change?
Expand Down

0 comments on commit f377c63

Please sign in to comment.