lyt23 / signavio-core-components

Automatically exported from code.google.com/p/signavio-core-components
GNU General Public License v3.0
0 stars 0 forks source link

Task text does not render correctly in Chrome 21 #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Open any multiple diagram which has an issue with multiple line text
What is the expected output? What do you see instead?
The text should be

This
is
test

i see only
test

What version of the product are you using? On what operating system?
The issue appeared in Chrome 21

Please provide any additional information below.
The problem is on line 573 of label.js

            var tspans = $A(this.node.getElementsByTagNameNS(ORYX.CONFIG.NAMESPACE_SVG, 'tspan'));

this.node.getElementsByTagNameNS(ORYX.CONFIG.NAMESPACE_SVG, 'tspan') returns 
only the last tspan.

if you change it to

this.node.getElementsByTagNameNS('*', 'tspan') 
or
this.node.getElementsByTagName('tspan')

it works

Original issue reported on code.google.com by gasper.b...@gmail.com on 1 Aug 2012 at 4:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Actually i think that the problem is on line 667

var tspans = this.node.getElementsByTagNameNS(ORYX.CONFIG.NAMESPACE_SVG, 
'tspan');
should be
var tspans = this.node.getElementsByTagNameNS("*", 'tspan');

Original comment by gasper.b...@gmail.com on 1 Aug 2012 at 5:02