Announcement

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

    Min Height for ListGrid

    Dear Isomorphic

    I use SmartGwt version 2.4 and have the following question:

    I have a simple ListGrid with only two records (see example and image).
    When the ListGrid is rendered there is always a empty space after the second record.
    ListGrid.setMinHeight(xxx) doesn't seem to work.

    It seems that there is a fix minimum size of the ListGrid_body of 75px.

    How can I configure the ListGrid that there is no empty space after the second record?

    Thanks in advanced
    Marco

    Code:
    		ListGrid grid = new ListGrid();
    		ListGridRecord[] records = new ListGridRecord[2];
    		ListGridRecord r1 = new ListGridRecord();
    		r1.setAttribute("field1", "value1");
    		r1.setAttribute("field2", "value1");
    		ListGridRecord r2 = new ListGridRecord();
    		r2.setAttribute("field1", "value2");
    		r2.setAttribute("field2", "value2");
    		records[0] = r1;
    		records[1] = r2;
    		grid.setData(records);
    		grid.setFields(new ListGridField("field1"), new ListGridField("field2"));
    Attached Files

    #2
    See the Auto Fit samples under Grids.

    Comment


      #3
      Sorry, I can't find an example in the Auto Fit samples with no empty space. Even in the #grid_autofit_filter sample when I filter to one record there is a empty space.
      I've already tried all combination of Overflow, AutoFit, BodyOverflow, ....

      Is it not possible to get rid of this space?

      Comment

      Working...
      X