1) I'm trying to create a StackPanel with two child panels: a table
with a scrollbar in one, and a read-only text box in the other. My
code looks like this:
// create the stack panel
stackPanel = new StackPanel();
stackPanel.setWidth("100%");
stackPanel.setHeight("100%");
// create the transactions table for the first StackPanel's
child
CellTable<Transaction> tableTransactions =
setupTransactionTable();
tableTransactions.setWidth("100%");
// put it in a ScrollPanel
ScrollPanel tableScrollPanel = new ScrollPanel();
tableScrollPanel.setWidth("100%");
tableScrollPanel.setHeight("100%");
tableScrollPanel.add(tableTransactions);
// add the ScrollPanel to the stack
stackPanel.add(tableScrollPanel, "Transactions", false);
When I create it this way, I never see scrollbars on the table. When
the table gets too large to fit in the StackPanel, it actually pushes
the next header off bounds! However, if I add the ScrollPanel to the
main view, it works as expected.
Is this a bug, or am I doing something wrong? If it is a bug, is there
a workaround?
2) As a Flex guy, I first thought I knew exactly how to use GWT
containers like HorizontalPanel and VerticalPanel. I was disappointed
to discover that these panels force every child to be the same size. I
switched to using FlowPanel, but this doesn't seem to work as I'd
expect. For example, I just want to create a simple horizontal toolbar
that looks like this:
Month: [ComboBox] [spacer] Year: [ComboBox]
If I try to add Label objects and ListObjects to a FlowPanel, they
actually stack vertically! So how would I create a toolbar like the
one above?
3) I read on the blog post http://www.zackgrossbart.com/hackito/antiptrn-gwt/
that I should be using CSS positioning instead of FlexTable. Should I
be using it instead of all these layout classes?
Thanks in advance!
--
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.