PDA

View Full Version : [CLOSED] Size calculation of TriggerFields



SSchaefer
29 May 2008, 1:10 AM
Hi,
i have a GWT FlexTable. When I put DateFields or CoboBoxes (all TriggerFields?) in this FlexTable, the Trigger is shown behind the next Cell. I think, the Trigger is probably ignored by the size calculation algorithm.

Put this code into an EntryPoint:

FlexTable table=new FlexTable();
RootPanel.get().add(table);

table.setWidget(0, 0, new TextField());
table.setWidget(0, 1, new DateField());
table.setWidget(0, 2, new ComboBox());
table.setWidget(0, 3, new TextField());I used:
GWT 1.5 M2 on Windows XP
Ext GWT 1.0 Beta 3
Slate style (if this is the problem)


Thanks for your help.
Steffen

PGTaboada
29 May 2008, 1:13 AM
The same here with a GXT fresh build from svn.

darrellmeyer
3 Jun 2008, 7:25 AM
Using fields in GWT Panels should be advoided. ComboBox needs to be sizezed to render properly. GWT Panels do not size their children, so you will have issues. With beta 4, advanced layouts are possible and preferred. See the new form demo pages in the Explorer Demo.