javierdotnet / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
1 stars 3 forks source link

Adding an Field, with label on the Left, to a FormPanel will produce a "deficient" top-border #386

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. form = new Panel();
2. form.setLayout(new FormLayout());
3. test = new TextField("Test");
3. form.add(test);

What is the expected output? What do you see instead?
I expected to see a normal field bordering, but i'm seeing the border of
panel override the top border of the field

What version of the product are you using? On what operating system?
2.0.4 on Windows XP

Original issue reported on code.google.com by alksh4...@gmail.com on 13 Aug 2008 at 9:26

Attachments:

GoogleCodeExporter commented 9 years ago
change the height to that text box. Eg. textBox.setHeight(21);
Then you can see the border on top.

Balu

Original comment by balasubr...@gmail.com on 25 Sep 2008 at 8:23

GoogleCodeExporter commented 9 years ago
If you apply the code at the below(textfields and comboboxes), it fixes the 
problem 
on ie7&ie8  , 
i dont know how to apply this from a css file , to fix all textcomponents from 
one 
point , 

Textfield comp = new TextField("comp")
comp.setStyle("margin:1px 0;");

Alisan

Original comment by erdem...@gmail.com on 12 Jul 2009 at 5:59