qasta / gwt-diagrams

Automatically exported from code.google.com/p/gwt-diagrams
0 stars 0 forks source link

Support for GWT 1.5 #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The current version of gwt-diagrams (0.1) does not work properly under GWT
1.5.  The RectiliniarTwoEndedConnection does not show at all, while the
Bezier and Straight show up, but in the wrong location.

Any plans of making gwt-diagrams compatible with GWT 1.5?

Original issue reported on code.google.com by bor...@gmail.com on 7 Jun 2008 at 8:30

GoogleCodeExporter commented 9 years ago
After many hours of trying to understand why I can't get simple diagrams 
working in
GWT 1.5, I think I finally found the answer. Hopefully this will save someone a 
few
hours:

GWT 1.5 applicationCreator script creates, among other things, the
mpublic/ProjectName.html file.  The 1.5 version of this file starts with:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">

This is causing gwt-diagrams to not display the connector lines.  
Removing this line will get it working again.  

Original comment by bor...@gmail.com on 7 Jun 2008 at 11:24

GoogleCodeExporter commented 9 years ago
This seems to fix things in Firefox 3.  Under IE 7, only the
Rectiliniar connection works properly.

Original comment by csy...@gmail.com on 9 Jun 2008 at 6:52

GoogleCodeExporter commented 9 years ago
@ borice. Thanks for this tip!

Original comment by michael....@students.jku.at on 4 Oct 2008 at 11:39

GoogleCodeExporter commented 9 years ago
I have to use gwt-diagrams with loose.dtd. So I did some testing and looks like 
the
divs that create the rectilinear connections need to have "px" added when 
height,
width, top or left are set.

After this at least the rectilinear connections work with loose.dtd.

Original comment by toni.rik...@gmail.com on 3 Nov 2008 at 10:06

GoogleCodeExporter commented 9 years ago
Hi,
Does anybody has any other suggestion because I've tried the solution proposed 
by 
Tony (appending "px" in the update() method of the 
RectilinearTwoEndedConnection) and 
the connections I'm drawing still don't display?
Thank you in advance!
Denise

Original comment by denised...@gmail.com on 12 Nov 2008 at 7:02

GoogleCodeExporter commented 9 years ago
I think I found a workaround for the problem: in the method 
appendTo(AbsolutePanel) 
of the AbstractConnection class I've just removed the call to update() and now 
my 
connections are displaying just fine! 
I mention that I've only tested for rectilinear connections with gwt-diagrams 
RC2 and 
GWT 1.4.62 but I had the same problem with GWT 1.5 

Denise

Original comment by denised...@gmail.com on 15 Nov 2008 at 6:57