PDA

View Full Version : widget.Text display difference in ie6 - ff chrome



rapdum
21 Jan 2010, 4:04 AM
Hello,
I'm trying to render some text using the widget com.extjs.gxt.ui.client.widget.Text of gxt2.0.1



this.text = new Text();
this.text.setStyleAttribute("fontFamily", "Courier New");
this.text.setStyleAttribute("fontSize", "12px");
this.text.setText("1\n2\n3");

rendering in ie6:

1
2
3

in chrome/firefox

1 2 3

why carriage return are not appearing in chrome or ff?
Am I doing something wrong?

Raphaƫl