Wednesday, July 4, 2012

ListBox widget behaves differently in FF12,IE7 and Chrome

public void onModuleLoad() {
ListBox widget = new ListBox();
widget.addStyleName("demo-ListBox");
widget.addItem("One");
widget.addItem("Two");
widget.addItem("Three");
widget.addItem("Four");
widget.addItem("Five");
widget.setSelectedIndex(-1);
VerticalPanel panel = new VerticalPanel();
panel.addStyleName("demo-panel-padded");
panel.setSize("200px", "120px");
panel.add(widget);
RootLayoutPanel.get().add(panel);
}

FF12: Initially ListBox widget is displayed with no value in it.

IE7 and Chrome: Initially ListBox widget is displayed with first
value in it, in this case One.

I would like to have the FF behavior even in IE and Chrome.

Thanks in advance!
Saida




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate