Skip to content

Commit 845553e

Browse files
committed
Fix bug in title positioning
1 parent f84232a commit 845553e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/colorbar/draw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ function drawColorBar(g, opts, gd) {
367367
}
368368

369369
if(titleSide === 'right') {
370-
y = ypad + gs.t + posW * optsY + 3 + titleFontSize * 0.75;
371-
x = xpad + gs.l + posH * vFrac;
370+
y = ypad + gs.t + posH * optsY + 3 + titleFontSize * 0.75;
371+
x = xpad + gs.l + posW * vFrac;
372372
}
373373

374374
drawTitle(ax._id + 'title', {

0 commit comments

Comments
 (0)