Skip to content

Commit ccba6e9

Browse files
committed
updated condition to account for an icon ascent of 0
1 parent 789ce44 commit ccba6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/modebar/modebar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ proto.createIcon = function(thisIcon, name) {
191191
if(thisIcon.transform) {
192192
path.setAttribute('transform', thisIcon.transform);
193193
}
194-
else if(thisIcon.ascent) {
194+
else if(thisIcon.ascent !== undefined) {
195195
// Legacy icon transform calculation
196196
var transform = name === 'toggleSpikelines' ?
197197
'matrix(1.5 0 0 -1.5 0 ' + thisIcon.ascent + ')' :

0 commit comments

Comments
 (0)