Announcement

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

    Disable ListGrid Scrollbar

    I am trying to get the listgrid display all rows and without a scrollbar. It does, but shows up a gap in scrollbar. Is there a way to avoid that gap and show no scrollbar, just like it is in this sample.

    http://www.smartclient.com/smartgwt/showcase/#grid_autofit_rows


    setLeaveScrollbarGap(false);
    setOverflow(Overflow.VISIBLE);
    setBodyOverflow(Overflow.VISIBLE);
    setShowAllRecords(true);

    I have invoked all of these statements on Grid, but I still get a gap for the scrollbar.

    #2
    Behaviour is different in IE and Firefox for the above code. In both cases, when the grid is drawn scrollbar gap does not appear. Once i start moving the mouse over the grid, I see the gap for the scrollbar(no bar as expected).

    In firefox, the gap appears for whole grid. In IE, the gap appears only in header and not in the body. Strange.

    Comment


      #3
      See grid.autoFitData

      Comment


        #4
        I'm working with LGPL version 2.2 and having the same problem on firefox 3.6
        Here is my grid code:

        grid.setWidth100();
        grid.setHeight(description.getAttribute("height"));
        grid.setCellHeight(ROW_HEIGHT);
        grid.setWrapCells(true);
        grid.setAlternateRecordStyles(true);
        grid.setAutoFitData(Autofit.BOTH); grid.setAutoFitWidthApproach(AutoFitWidthApproach.BOTH);
        grid.setCanResizeFields(true);

        any idea?

        Comment

        Working...
        X