qasta / gwt-diagrams

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

changing connection color #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
code:

option1:
c = new StraightTwoEndedConnection(u1,u2);
DOM.setStyleAttribute(c.getElement(), "color", "#00BB00");

option2:
c = new StraightTwoEndedConnection(u1,u2);
c.setStyleName("my_style")

I have defined my_style in <project>.css

What is the expected output? What do you see instead?
no color change is seen than color mentioned in Diagram.css

What version of the product are you using? On what operating system?
Using GWT-EXT and GWT DND

Any help will be appreciated.

Original issue reported on code.google.com by rkkil...@gmail.com on 10 Jun 2009 at 2:47

GoogleCodeExporter commented 9 years ago
both options work in Firefox and Chrome but not in IE7 and hosted mode browser. 

But in Firefox and chrome after drawing line between my custom widget, one of 
the 
widget looses its dragging ability. Do not respond to click events. This 
behavior is 
not seen in IE7 and hosted mode. Anyone has faced similer issue?

Original comment by rkkil...@gmail.com on 10 Jun 2009 at 3:29

GoogleCodeExporter commented 9 years ago
I got the solution for my problem (posted in comment 1) from issue 35:

problem: But in Firefox and chrome after drawing line between my custom widget, 
one 
of the widget looses its dragging ability. Do not respond to click events. This 
behavior is not seen in IE7 and hosted mode. Anyone has faced similer issue?

Solution: use higher number zIndex for draggable items and lower zIndex for 
connections. I wonder why this is not a problem in IE7 or hosted mode browser! 
Can 
any one help me explaining this.

Still trying to solve run time color change for connections.

Original comment by rkkil...@gmail.com on 11 Jun 2009 at 10:28

GoogleCodeExporter commented 9 years ago
Yes, runtime color change is happening. I used DOM.setStyleAttribute(). I can 
flip 
color of the line(s) based on user actions.

Original comment by rkkil...@gmail.com on 11 Jun 2009 at 11:31

GoogleCodeExporter commented 9 years ago
DOM.setStyleAttribute() is working in Firefox. But not working in IE and Opera. 
Anyone solved this issue? Also, please tell how to sex zIndex for connected 
items 
and connections.

Original comment by prabu...@gmail.com on 18 Aug 2009 at 11:57