Hi Micha,

Today Micha wrote:

>
> ok, interessting, it's a timing problem...
>
> I have the following result:
>
> if I call this on my (fast) system:
>
> label.setOpacity(0);
> box.add(label);
> label.fadeIn(); // fadeIn directly after the add
>
> it doesn't work, nothing happens.

this is because things to not appear on screen immediately, they
have to be rendered by the qooxdoo render subsytem first. so if you call

label.addListener('appear',function(){
     label.fadeIn();
});
box.add(label);


then things should be well.

cheers
tobi
>
>
> if I call this:
>
> box.add(label);
> window.setTimeout(function() {
>       label.fadeIn();         // fadeIn after some time
>       }, 100);
>
> it works and the label does fadeIn.
>
> In the first version the label maybe just is not ready at the time the
> fadeIn is started. The timeout helps...   ok, I think I don't understand
> this :-)
>
> On your online playgroud it allways works, seems slow enaugh :-)
>
>
> cheers,
>  Micha
>
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to