He,
The following occurred against 1.6.4.

In hosted mode (IE 7 I quess as I have IE7 installed) I found out that
when I set the opacity in a FadeInAnimation.update(double) class that
is a subclass of Animation, it has no effect until I first set some
other style property...

Example:
In the  FadeInAnimation.update method, I do something like (for IE in
hosted mode):
-----
update(double progress) {
 getElement().getStyle().setProperty("filter", "alpha(opacity= " +
value * 100 + ")");
}
----

I tried the above in several ways, with the following simple test:
---
FlowPanel main = new FlowPanel();
RootPanel.get().add(main);
HTML html = new HTML("some text<br>more text<br>");
main.add(html);
FadeInAnimation an = new FadeInAnimation(html.getElement());
an.run(10000);
---

The html widget kept on showing up immediately, until I set another
style like the height in the above update statement before setting the
opactity, like:
----
update(double progress) {
 this.element.getStyle().setProperty("height", "200px"); // NEW
 this.element.getStyle().setProperty("filter", "alpha(opacity= " +
value * 100 + ")");
}
-----

And all of a sudden it worked... Appearantly the opacity statement
doesn't trigger a css refresh.
Anybody an idea what's happening here? Doe anybody else experience
this as well, or can try this ?

BTW: I used a clean html page without any style definitions to make
sure that not some strange style was causing this.

Ed

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to