Am I missing something? I have very simple code to display a TextBox, a 
Dropdown and a Button. Why is the width of the Textbox greater than others? I 
checked in IE6, IE8 and Mozilla.

  TextBox text = new TextBox();
  ListBox list = new ListBox();
  Button button = new Button("Click me!");
  
  text.setWidth("200px");
  list.setWidth("200px");
  button.setWidth("200px");
  
  VerticalPanel panel = new VerticalPanel();
  
  panel.add(text); 
  panel.add(list); 
  panel.add(button);
  
  RootPanel.get().add(panel);

I am in the middle of code that needs abstraction over the widget. I need to 
display different widgets without knowing what they are. Different widths of 
controls are screwing my plans.


Can someone help me on this?

Thanks and Regards
Sagar Samag

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

Reply via email to