Skip to content

Commit

Permalink
round height, similar to chartjs#11132
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovieira committed Mar 5, 2024
1 parent 7736ea3 commit 171a8f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions rollup.config.js
Expand Up @@ -30,7 +30,7 @@ const plugins = (minify) =>
module: {
type: 'es6'
},
sourceMaps: true
sourceMaps: false
}),
minify
? terser({
Expand All @@ -54,7 +54,7 @@ export default [
file: 'dist/chart.umd.js',
format: 'umd',
indent: false,
sourcemap: true,
sourcemap: false,
},
},

Expand All @@ -75,7 +75,7 @@ export default [
banner,
format: 'esm',
indent: false,
sourcemap: true,
sourcemap: false,
},
},

Expand All @@ -96,7 +96,7 @@ export default [
banner,
format: 'commonjs',
indent: false,
sourcemap: true,
sourcemap: false,
},
}
];
2 changes: 1 addition & 1 deletion src/helpers/helpers.dom.ts
Expand Up @@ -200,7 +200,7 @@ export function getMaximumSize(
const maintainHeight = bbWidth !== undefined || bbHeight !== undefined;

if (maintainHeight && aspectRatio && containerSize.height && height > containerSize.height) {
height = containerSize.height;
height = round1(containerSize.height);
width = round1(Math.floor(height * aspectRatio));
}

Expand Down

0 comments on commit 171a8f0

Please sign in to comment.