Skip to content

Commit 5e13658

Browse files
committed
fixup top title positioning
1 parent 06def17 commit 5e13658

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/components/colorbar/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ function drawColorBar(g, opts, gd) {
401401

402402
if(titleSide === 'top') {
403403
var nlines = title.text.split('<br>').length;
404-
y = gs.t + gs.h * pos - 15 - LINE_SPACING * titleFontSize * nlines;
404+
y = gs.t + gs.h * pos + 10 - thickPx - LINE_SPACING * titleFontSize * nlines;
405405
}
406406
}
407407

-116 Bytes
Loading

0 commit comments

Comments
 (0)