views:

40

answers:

0
TextArea textarea1 = TextArea.wrap(DOM.getElementById("t"));

In onModuleLoad() I wrote 2 lines given below:

textAreaStyle = "position:absolute;top:0px;";

textarea1.getElement().setAttribute("style", textAreaStyle);

In Firefox and Chrome, the textarea is placed in absolute position and 0px from top, but in IE the textarea remains at its default position.

Is there a bug in my code?