> > I believe afterFinish should be available to use.
> >
afterFinish works fine. Interestingly, I was able to solve the problem, and I
wonder if this isn't the same thing that
Scriptaculous should do?
First, the offending style at the end of Effect.Highlight:
<td onmouseout="resize.mouseOut()" onmouseover="resize.mouseOver()"
onmousedown="resize.mouseDown(event)" title="Click and Drag to
resize text reading width." id="contentresizecell" style="background-image:
none; background-color: transparent;">
It looks like Effect.Highlight is trying to revert the background back to
transparent. This overrides my CSS style.
Here's the fix I put into afterFinish, which seems to me is what
Effect.Highlight should be doing rather than the above:...
effectAfterFinish: function() {
$('contentresizecell').setStyle( {backgroundColor: '', backgroundImage:
''} );
}
Here's the result using "View Generated Source"...
<td class="" style="" id="contentresizecell" title="Click and Drag to resize
text reading width."
onmousedown="resize.mouseDown(event)" onmouseover="resize.mouseOver()"
onmouseout="resize.mouseOut()">
Look Ma! No style overriding my CSS !
Shouldn't this be an enhancement request or a fix to Effect.Highlight?
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
-~----------~----~----~----~------~----~------~--~---