On Mon, Mar 9, 2009 at 5:45 PM, aris <ari09845...@gmail.com> wrote: > > Ok > > I was using it to add a new style into an existing element: > > RootPanel.get("id1").addStyleName("style1") > > or changing the visible state of an existing element. > > > Maybe I can use DOM.getElementById() and change the property > directly...
Oh, I see what you're trying to do. You're right, that's what DOM (or better, Document) .getElementId().getStyle().setProperty(...) would be good for. It's also a lot lighter-weight to do it that way. --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---