Hi,
I want to show the contents of a log file inside a StackPanel. The log
file itself is a class "LogPanel" based on a VerticalPanel. Because
the log file grows, I added an intermediate ScrollPanel (see code
below).
The problem: The ScrollPanel never shows scrollbars. Instead, it grows
as the LogPanel grows, beyond the size of the containing StackPanel.
I would like the ScrollPanel to occupy all available space within the
StackPanel and to show scrollbars, when the inner LogPanel gets
bigger.
The demo of the StackPanel class in the GWT showcase application
assumes that there is enough room for the contents.
Can you help?
Thanks!
Magnus
-----
public class MyStackPanel extends StackPanel
{
public MyStackPanel ()
{
super ();
setSize("100%","100%"); // we are in the west edge of a
DockLayoutPanel
}
public void add (LogPanel log)
{
ScrollPanel p = new ScrollPanel ();
p.add(log);
add (p,"Log");
p.setSize ("100%","100%");
}
}
--
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.