Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid inside of a TabPanel

    I've read the "How do I make a Smart GWT widget fill a basic HTML container or GWT container?" faq: http://forums.smartclient.com/showthread.php?t=8159#aContainer

    My layout:
    At the top level, I have a GWT ScrollPanel. It contains three elements, one of which is a GWT TabPanel. I have a ListGrid inside the TabPanel. The ListGrid is wide, and does not fit within the TabPanel. If I setWidth100 on the ListGrid, it is always about half an inch wider than the TabPanel. This is a problem because the ListGrid always creates its own, second, vertical scrollbar, which is out of sight of the user until the user horizontally scrolls all the way to the right.

    I've attached two screenshots, the first showing what it looks like when I open the window, the second when I scroll all the way to the right.

    I tried
    theGrid.setAutoFitData (Autofit.VERTICAL);
    but nothing changed.

    How do I get the ListGrid to just show all it's records, and let the outer ScrollPanel handle the scrolling? The number of records is entirely dependent upon the user, it can vary from 0 to 600+.

    SmartClient Version: v9.1p_2014-07-01/LGPL Development Only (built 2014-07-01)

    Thank you for any assistance.
    Attached Files
Working...
X