Skip to content

Commit 4efb546

Browse files
committed
Make explanatory comment in polar.js more clear [882]
1 parent 598fc5f commit 4efb546

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plots/polar/polar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,8 @@ proto.updateRadialAxisTitle = function(fullLayout, polarLayout, _angle) {
485485
var pad = 0;
486486

487487
// Hint: no need to check if there is in fact a title.text set
488-
// because if plot is editable, pad needs to be calculated anyways.
488+
// because if plot is editable, pad needs to be calculated anyways
489+
// to properly show placeholder text when title is empty.
489490
if(radialLayout.title) {
490491
var h = Drawing.bBox(_this.layers['radial-axis'].node()).height;
491492
var ts = radialLayout.title.font.size;

0 commit comments

Comments
 (0)