Announcement

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

    ListGrid with content dependent height

    Hi,

    I am wondering if it is possible to have a ListGrid behave in such a way that its height stretches based on the size of its contents?

    This would have the effect that the ListGrid's scrollbar would never show.

    Thanks,
    Alan

    #2
    Anybody able to help on this one?

    Comment


      #3
      I need this answered too. I've tried every combination I can think of setting the height of the ListGrid, its layout, LayoutSpacer, etc, but my ListGrid is always either oversized, with blank rows, or has a scrollbar. Is there no API to render it at it's minimum size without scrollbars?

      Thanks-

      Comment


        #4
        The solution to this that I found (but haven't tested) is to do the following:
        Code:
        grid.setDefaultHeight(10);
        grid.setAutoFitData(Autofit.VERTICAL);
        Good luck!

        Comment


          #5
          Thanks so much, Alan. That works perfectly.

          Comment


            #6
            Happy to be of help :-)

            Comment

            Working...
            X