Hi,
Has anyone successfully reproduced the layout identical to the layout
in the multi-column form example from GWT-Ext Showcase? If you have,
please give me some hints on how to make the field labels go on top of
the textbox.
I pretty much followed the code exactly, but in a slightly different
context, and got different results. Instead of placing the labels go
on top of the textbox, it places the labels on the left of the textbox
all crunched up together in three rows, like this:
Contact
Name: [TextBox over here]
This is a big problem because now the left and right columns have
different heights because of the different stacking of the label
texts. It looks pretty ugly right now.
Here's my code:
Panel primaryContactPanel = new Panel();
primaryContactPanel.setLayout(new ColumnLayout());
Panel primaryContactLeftPanel = new Panel();
primaryContactLeftPanel.setLayout(new FormLayout());
primaryContactLeftPanel.add(firstContactIdField, new AnchorLayoutData
("95%"));
primaryContactLeftPanel.add(firstContactNameField, new AnchorLayoutData
("95%"));
primaryContactLeftPanel.add(firstContactEmailField, new
AnchorLayoutData("95%"));
Panel primaryContactRightPanel = new Panel();
primaryContactRightPanel.setLayout(new FormLayout());
primaryContactRightPanel.add(firstContactPrimaryPhoneField, new
AnchorLayoutData("95%"));
primaryContactRightPanel.add(firstContactSecondaryPhoneField, new
AnchorLayoutData("95%"));
primaryContactRightPanel.add(firstContactFaxField, new AnchorLayoutData
("95%"));
primaryContactPanel.add(primaryContactLeftPanel, new ColumnLayoutData
(0.5));
primaryContactPanel.add(primaryContactRightPanel, new ColumnLayoutData
(0.5));
// Primary contact fieldset
FieldSet primaryContactFieldSet = new FieldSet
(Constants.ADV_PRIMARY_CONTACT_SECTION_TITLE);
primaryContactFieldSet.add(primaryContactPanel);
I tried taking out the FieldSet and adding the primaryContactPanel to
the form directly with no luck.
Anyone have any insight into multi-column forms that can help me out?
I appreciate it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---