MRchildNEO / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Resizing viewbox causes tspans to vanish #619

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Creating a <text> element and a <tspan> using % coordinates
2. Resizing the viewbox and width and height

What is the expected output? What do you see instead?
When the svgfile is loaded, it renders text with tspans just fine. When the svg 
is resized, the tspans dissappear. Regular text elements still render properly.

What version of the product are you using? On what operating system,
browser, and version of Flash?
lurker on flash 10.2.152.32

code sample that does resize:

 svgViewer.viewer.xml.@viewBox = "0 0 1200 400"
 svgViewer.viewer.xml.@width = "1200"
 svgViewer.viewer.xml.@height = "400"

sample svg:

 <text x="82%" y="5%" style="font-size:7%">
  <tspan>Customers</tspan>
 </text>

I tried to step through this one, but I am not familiar enough with the code to 
figure ut out..

Original issue reported on code.google.com by AbrahamD...@gmail.com on 29 May 2011 at 11:14