Re: Adding CSS style dynamically

2010-05-20 Thread Professor Vagner
try com.google.gwt.dom.client.Style class. ... Style style = yourElement.getStyle(); style.setPosition(Position.ABSOLUTE); ... -- Professor Vagner O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E ALÉM... !! -- You received this message because you are

Re: Adding CSS style dynamically

2010-05-19 Thread Stefan Bachert
Hi, this code does not look totally wrong. However, it depend where your widgets/dom are placed in. In a LayoutPanel it would not work. In an AbsolutePanel it probably works. Stefan Bachert http://gwtworld.de On 18 Mai, 15:37, Lex tose...@gmail.com wrote: Hello. I have some odd situation

Adding CSS style dynamically

2010-05-18 Thread Lex
Hello. I have some odd situation where I need to add the style attributes dynamically/programmatically depending on what the saved data is. In short, instead of defining the css style definitions in the file and reference them, I need to create those per Widget, depending on the data. I tried