From 1a7212dff50e28be3a70668ac817bc347e163725 Mon Sep 17 00:00:00 2001 From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Wed, 2 Jun 2021 21:48:42 +0200 Subject: [PATCH] Barheight no longer undefined (#9208) --- src/controllers/controller.bar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/controller.bar.js b/src/controllers/controller.bar.js index bec996ac1de..d7daa6e8430 100644 --- a/src/controllers/controller.bar.js +++ b/src/controllers/controller.bar.js @@ -285,8 +285,8 @@ export default class BarController extends DatasetController { enableBorderRadius: !stack || isFloatBar(parsed._custom) || (me.index === stack._top || me.index === stack._bottom), x: horizontal ? vpixels.head : ipixels.center, y: horizontal ? ipixels.center : vpixels.head, - height: horizontal ? ipixels.size : undefined, - width: horizontal ? undefined : ipixels.size + height: horizontal ? ipixels.size : Math.abs(vpixels.size), + width: horizontal ? Math.abs(vpixels.size) : ipixels.size }; if (includeOptions) {