Skip to content

Commit

Permalink
Barheight no longer undefined (#9208)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeLenaleee committed Jun 2, 2021
1 parent 26f8d7b commit 1a7212d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/controller.bar.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 1a7212d

Please sign in to comment.