Skip to content

Commit 2e132bd

Browse files
committed
coerce valign only with height
1 parent e01a765 commit 2e132bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/annotations/annotation_defaults.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ module.exports = function handleAnnotationDefaults(annIn, annOut, fullLayout, op
4545
Lib.coerceFont(coerce, 'font', fullLayout.font);
4646

4747
coerce('width');
48-
coerce('height');
4948
coerce('align');
50-
coerce('valign');
49+
50+
var h = coerce('height');
51+
if(h) coerce('valign');
5152

5253
// positioning
5354
var axLetters = ['x', 'y'],

0 commit comments

Comments
 (0)