pgdad / canviz

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

IE: Text positioning wrong with latest Graphviz #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The text labels are now being shown in IE 6, 7, and 8 beta 2 (see issue #8)
when using graphs produced by Graphviz 2.21.20081029.0445 and earlier. But
when they're made by Graphviz 2.21.20081115.1321 or later, IE 6 and 7 show
all text elements mashed up against one another on a single line at the top
of the window, and IE 8 beta 2 shows nothing (doesn't even hide the
"Loading..." div). No similar problem in Safari or Firefox.

Original issue reported on code.google.com by ryandesi...@gmail.com on 26 Dec 2008 at 9:01

GoogleCodeExporter commented 9 years ago
The applicable difference here between Graphviz 2.21.20081029.0445 and
2.21.20081115.1321 is that Graphviz now translates color names into their hex 
color
values with alpha component, so e.g. "black" becomes "#ffffffff", "hotpink" 
becomes
"#ff69b4ff", etc. This is good because it means we don't need to load the color
scheme look-up tables anymore (see issue #20). But it looks like IE doesn't 
support
the alpha component of the color spec and ignores it and everything else we do 
in
that Element.setStyle() invocation, hence the position information we set for 
those
elements is lost too. I need to see how far IE's lack of alpha support extends 
and
how we can work around this. If alpha works properly in the emulated canvas, 
and is
only broken for the text labels, maybe we can use Prototype's 
Element.setOpacity()
function.

Original comment by ryandesi...@gmail.com on 26 Dec 2008 at 9:36

GoogleCodeExporter commented 9 years ago
r245: Fixed it!

Original comment by ryandesi...@gmail.com on 27 Dec 2008 at 3:34