Results 1 to 3 of 3

Thread: Proper fill for grid panel empty space beneath last row

  1. #1
    Ext JS Premium Member cmeans's Avatar
    Join Date
    Jun 2010
    Location
    Chicago, IL USA
    Posts
    115
    Answers
    3
    Vote Rating
    7
      0  

    Default Answered: Proper fill for grid panel empty space beneath last row

    ExtJS v4.1.1a

    I have a grid panel.
    It displays a fixed number of items (though their height is somewhat variable).
    The grid panel has a fixed height (tall enough that all items display...regardless of their height, with no scroll bar).
    I'm using a row numbering column (first).

    The problem is that there is a variable amount of white space between the bottom of the listed items and the page control.

    Is there a reasonably simple way to get a cross browser friendly fill for the empty space that just looks like an empty row (first cell with the shading for a row numbering column etc.)?

    A bodyCls doesn't seem to work...the row numbering fill is different depending on the browser (gradient for recent browsers, but solid for older ones).

    I'm looking for suggestions to try.

    Thanks.

    -Chris

  2. You can change the css of the body background. Have you thought of letting it auto height?

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    You can change the css of the body background. Have you thought of letting it auto height?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Ext JS Premium Member cmeans's Avatar
    Join Date
    Jun 2010
    Location
    Chicago, IL USA
    Posts
    115
    Answers
    3
    Vote Rating
    7
      0  

    Default

    I am currently taking the approach of chaning the background css...I have a hoop to jump through due to rendering for older browsers, but it's an "OK" solution.

    I've got a paging tool bar docked at the bottom, and we don't want it contantly moving around, so shrinking the control isn't really an option here.

    Thanks.

    -Chris

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •