Sign In/My Account | View Cart  
advertisement

Article:
 Simple Text Wrapping
Subject: Firefox 1.5
Date: 2008-05-12 05:09:14
From: ebbeebbe
Response to: Firefox 1.5

To make it work in Firefox 2, native SVG, you should do the following:
- add "important" as the third argument to all setPropertyValue
- find the line which says tspan.setAttribute('dy', i ? this._interval : '1em'); and change that into tspan.setAttribute('dy',15);


In Firefox 2 there is also an issue with getComputedTextLength(). This will only work when the element it is called on is rendered _and_ visible. For the onload function you can make sure everything is rendered by setting a timeout: setTimeout('TextWrap._init()',1000); Firefox 3 should not have this issue anymore. See https://bugzilla.mozilla.org/show_bug.cgi?id=345635 for more info about the getComputedTextLength() issue in Firefox 2.


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Sponsored By: