Hi Joachim, I expect that you are not using the widget system from qooxdoo.
> I am currently trying to implement a gimmick where I flash up an > element's background colour white and then let it fade out whenever > the mouse passes over the item. I got the "flash" working with > ColorFlow, but due to nature of my program, I do not really know the > exact background colour which I should finish the animation on, which > would naturally be the original background colour before the "flash". > Currently, the items that flash up have a background colour value of > "null" and only the parent's parent-container finally has a proper > background colour set. > > As a workaround, I tried to set the DOM element's background colour > to a transparent RGBA colour once the animation finishes. You can also use [1] to change the opacity from one to zero. This has also the same effect like changing the color to transparent. [1] http://demo.qooxdoo.org/current/apiviewer/#qx.fx.effect.core.Fade > I set a listener on 'finish' for the ColorFlow animation, but it seems that > the 'finish' event is thrown prematurely (Qooxdoo, 1.0). Could you please provide a code snippet to reproduce the prematurely "finish" event issue. > Alternatively, is there a way to figure out the parent's > parent-container background colour somehow without explicitly > referencing the object? In other words, is there something like > "object.getParent().getParent().getBackgroundColor()" or similar? > No, not on low-level. You can use the getParentElement [2] to get the parent from a DOM element and get method [3] to get the background color. [2] http://demo.qooxdoo.org/current/apiviewer/#qx.dom.Element~getParentElement [3] http://demo.qooxdoo.org/current/apiviewer/#qx.bom.element.Style~get Cheers, Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
