Browse files

Opera baseline hack, may need UA detection

  • Loading branch information...
1 parent 940b775 commit e4643d48a61fd68e06b8e32ab7b36babd44f91a8 @sebmarkbage sebmarkbage committed Jul 22, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/ART.SVG.js
View
1 Source/ART.SVG.js
@@ -391,6 +391,7 @@ ART.SVG.Text = new Class({
row.setAttribute('x', 0);
row.setAttribute('dy', i == 0 ? '0' : '1em');
}
+ row.setAttribute('baseline-shift', paths ? '-0.5ex' : '-2ex'); // Opera
row.setAttribute('dominant-baseline', baseline);
row.appendChild(document.createTextNode(line));
element.appendChild(row);

0 comments on commit e4643d4

Please sign in to comment.