I had problems with doing Effect.Highlight on table rows before, as the TD’s would have their color changed and the revert would no longer inherit the css from the TR elements (if memory serves, it was only in Firefox).  I tried to overwrite part of Effect.Highlight to apply the changes to all child TDs when the effect was done on a TR, and I thought that fixed it, but it cropped up again later.  Anyway, the problem is that it resets those values to whatever they were before it applied the effect.  Since ‘none’ and ‘transparent’ are the defaults, they are put in at the end.  My guess is that the _javascript_ is not considering values from CSS, only inline styles, but I could be wrong.  Do I have a solution?  No, but I do feel your pain J

 

Greg

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sam
Sent: Monday, August 21, 2006 1:03 PM
To: [email protected]
Subject: [Rails-spinoffs] RE: Effects leaves footprints behind

 

No comment on whether this is a bug or expected behavior?

 

The attribute style="background-image: none; background-color: transparent;" is added to the element after Effect.Highlight runs.  These style attributes take precedence over the styles assigned by the CSS in the stylesheet.

 

Bug or expected behavior?

 

Sam

 

 

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sam
Sent: Saturday, August 19, 2006 3:37 PM
To: [email protected]
Subject: Effects leaves footprints behind

When Effect.Highlight is run on a table cell, it leaves the following style applied:

 

<td targetattr=onmouseout>resize.mouseOut()" targetattr=onmouseover>resize.mouseOver()" targetattr=onmousedown>resize.mouseDown(event)" title="Click and Drag to resize text reading width." id="contentresizecell" style="background-image: none; background-color: transparent;">

</td>

 

The style takes precidence over the background-color assigned to the element.

 

Is this expected behavior or a bug?

 

Sam

 

 




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to