It should just work.  For example, the following works for me.

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.*;
import com.google.gwt.user.client.ui.*;

public class Bar implements EntryPoint {
  public void onModuleLoad() {
    final DockLayoutPanel dock = new DockLayoutPanel(Unit.EM);
    final FlexTable table = new FlexTable();
    final FlowPanel header = new FlowPanel();
    header.add(new Button("Add row", new ClickHandler() {
        public void onClick(ClickEvent event) {
          table.setText(table.getRowCount(), 0, "foo");
        }
      }));
    dock.addNorth(header, 5);
    dock.add(new ScrollPanel(table));
    RootLayoutPanel.get().add(dock);
  }
}

On Mar 9, 7:03 pm, Vitaly Trifanov <[email protected]> wrote:
> Hello.
> I use DockLayoutPanel as root panel for my GWT app.
> In it's center I have a FlexTable, and I want vertical scroll bar to
> appear if content doesn't fit screen vertically.
> I put a FlexTable into a ScrollPanel, but it doesn't work.
>
> Please, help :)

-- 
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.

Reply via email to