Skip to content

Commit ed04458

Browse files
committed
rename innerWidth to innerThickness
1 parent 97d1c33 commit ed04458

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/colorbar/draw.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,9 @@ function drawColorBar(g, opts, gd) {
488488
// TODO: why are we redrawing multiple times now with this?
489489
// I guess autoMargin doesn't like being post-promise?
490490
function positionCB() {
491-
var innerWidth = thickPx + outlinewidth / 2;
491+
var innerThickness = thickPx + outlinewidth / 2;
492492
if(ax.ticklabelposition.indexOf('inside') === -1) {
493-
innerWidth += Drawing.bBox(axLayer.node()).width;
493+
innerThickness += Drawing.bBox(axLayer.node()).width;
494494
}
495495

496496
titleEl = titleCont.select('text');
@@ -507,10 +507,10 @@ function drawColorBar(g, opts, gd) {
507507
// transform gets removed by Drawing.bBox
508508
titleWidth = Drawing.bBox(titleCont.node()).right - uPx - gs.l;
509509
}
510-
innerWidth = Math.max(innerWidth, titleWidth);
510+
innerThickness = Math.max(innerThickness, titleWidth);
511511
}
512512

513-
var outerThickness = 2 * xpad + innerWidth + borderwidth + outlinewidth / 2;
513+
var outerThickness = 2 * xpad + innerThickness + borderwidth + outlinewidth / 2;
514514

515515
g.select('.' + cn.cbbg).attr({
516516
x: uPx - xpad - (borderwidth + outlinewidth) / 2,

0 commit comments

Comments
 (0)