Skip to content

Commit

Permalink
fixed visibility of empty lines for FF (clientIO#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtalas authored and kumilingus committed Jun 7, 2016
1 parent 279ac16 commit 1ba52d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vectorizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ V = Vectorizer = (function() {
// character and make it invisible, making the following lines correctly
// relatively positioned. `dy=1em` won't work with empty lines otherwise.
vLine.addClass('v-empty-line');
vLine.node.style.opacity = 0;
// 'opacity' needs to be specified with fill, stroke. Opacity without specification
// is not applied in Firefox
vLine.node.style.fillOpacity = 0;
vLine.node.style.strokeOpacity = 0;
vLine.node.textContent = '-';
}

Expand Down

0 comments on commit 1ba52d1

Please sign in to comment.