Thank you, Kozura,

My problem got resolved. I copied the code to a new GWT Project and it is working fine there without any change! But in the old project the same strange behavior continues. I checked CSS files. They are identical. I could not understand why this was happening.

Sagar
--------------------------------------------------
From: "kozura" <[email protected]>
Sent: Monday, April 12, 2010 10:37 AM
To: "Google Web Toolkit" <[email protected]>
Subject: Re: Texbox width greater than others

Probably need to do panel.setCellWidth(text, "200px") since
VerticalPanel is doing implemented with a table.  If lined up
formatting is key you might find other panel widgets like Grid to be
easier.

On Apr 11, 10:23 pm, "Sagar Samag" <[email protected]> wrote:
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.



--
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