Skip to content

Commit e189245

Browse files
committed
bbox bug
1 parent 8e44892 commit e189245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/titles/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function draw(gd, titleClass, options) {
380380
// Adjust subtitle position now that title placeholder has been added
381381
// Only adjust if subtitle is enabled and title text was originally empty
382382
if(subtitleEnabled && !txt) {
383-
var titleElBbox = Drawing.bBox(el.node());
383+
var titleElBbox = el.node().getBBox();
384384
var subtitleY = titleElBbox.y + titleElBbox.height + (SUBTITLE_PADDING_EM * subFontSize);
385385
subtitleEl.attr('y', subtitleY);
386386
}

0 commit comments

Comments
 (0)