views:

40

answers:

1

I have problem in RTL drop-down in windows7 or Vista. As you know browsers usually use OS listbox to show these components.

I want to ask how to restyle drop-down with CSS in RTL or if it is not possible, do you know free useful drop-down widget(in GWT)?

Regards

A: 

Quick and Dirty way is :

ListBox list = new ListBox();
    list.addItem("Value one");
    list.addItem("Value two");
    RootPanel.get("comboContainer").add(list);
    list.getElement().getStyle().setProperty("direction", "rtl");

Better way would be to do it in your stylesheet though.

G. Davids
It is not working, OS is the responsible
Navid
Could you mention the Browser you testing it on? That worked for me using Win7 x64 and Chrome
G. Davids
firefox and ie8
Navid
If you look at the locale list at http://gwt.google.com/samples/Showcase/Showcase.html?locale=ar you'll see it working in all browsers.It might be that a third party library could be affecting your UI?The example I posted has the exact same result. In Chrome, Firefox, Safari, and IE8/7
G. Davids