Skip to content

Commit 171a8f0

Browse files
committed
round height, similar to chartjs#11132
1 parent 7736ea3 commit 171a8f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rollup.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const plugins = (minify) =>
3030
module: {
3131
type: 'es6'
3232
},
33-
sourceMaps: true
33+
sourceMaps: false
3434
}),
3535
minify
3636
? terser({
@@ -54,7 +54,7 @@ export default [
5454
file: 'dist/chart.umd.js',
5555
format: 'umd',
5656
indent: false,
57-
sourcemap: true,
57+
sourcemap: false,
5858
},
5959
},
6060

@@ -75,7 +75,7 @@ export default [
7575
banner,
7676
format: 'esm',
7777
indent: false,
78-
sourcemap: true,
78+
sourcemap: false,
7979
},
8080
},
8181

@@ -96,7 +96,7 @@ export default [
9696
banner,
9797
format: 'commonjs',
9898
indent: false,
99-
sourcemap: true,
99+
sourcemap: false,
100100
},
101101
}
102102
];

src/helpers/helpers.dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export function getMaximumSize(
200200
const maintainHeight = bbWidth !== undefined || bbHeight !== undefined;
201201

202202
if (maintainHeight && aspectRatio && containerSize.height && height > containerSize.height) {
203-
height = containerSize.height;
203+
height = round1(containerSize.height);
204204
width = round1(Math.floor(height * aspectRatio));
205205
}
206206

0 commit comments

Comments
 (0)