Skip to content

Commit b40202f

Browse files
committed
remove addition
1 parent 2132066 commit b40202f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dimensions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export function Dimensions(
4141
};
4242
}
4343

44-
function autoHeight({y, fy, fx}, add) {
44+
function autoHeight({y, fy, fx}) {
4545
const nfy = fy ? fy.scale.domain().length : 1;
4646
const ny = y ? (isOrdinalScale(y) ? y.scale.domain().length : Math.max(7, 17 / nfy)) : 1;
47-
return !!(y || fy) * Math.max(1, Math.min(60, ny * nfy)) * 20 + !!fx * 30 + 60 + Math.max(0, add);
47+
return !!(y || fy) * Math.max(1, Math.min(60, ny * nfy)) * 20 + !!fx * 30 + 60;
4848
}

0 commit comments

Comments
 (0)