Skip to content

Commit acbefcd

Browse files
Filmbostock
andcommitted
Update src/dimensions.js
Co-authored-by: Mike Bostock <mbostock@gmail.com>
1 parent 2305151 commit acbefcd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/dimensions.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ export function Dimensions(
2727
marginLeft = margin !== undefined
2828
? margin
2929
: Math.max((yAxis === "left" ? 40 : 0) + facetMarginLeft, xAxis || fxAxis ? 20 : 0.5 - offset),
30-
height = autoHeight(
31-
scales,
32-
geometry || isProjection(projection),
33-
marginTop - marginTopAuto + marginBottom - marginBottomAuto
34-
)
30+
height = autoHeight(scales, geometry || isProjection(projection)) + Math.max(0, marginTop - marginTopAuto + marginBottom - marginBottomAuto)
3531
} = {}
3632
) {
3733
return {

0 commit comments

Comments
 (0)