Results 1 to 3 of 3

Thread: Scrolling a grid vertically w/o specifying a fixed height

  1. #1
    Sencha User
    Join Date
    Jan 2010
    Location
    Raleigh, NC
    Posts
    13
    Vote Rating
    0
      0  

    Default Scrolling a grid vertically w/o specifying a fixed height

    How do I make my grid scrollable vertically w/o specifying a fixed height?

    I want the grid to fill it's container, but still scroll. I want to the use the grid scroller instead of the container's scroller because I want the grid header to always be visible. Any help would be greatly appreciated!

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

    Default

    You can use some CSS overflow rules in 4.1.0 (native scrollbars)
    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

  3. #3
    Sencha User
    Join Date
    Jan 2010
    Location
    Raleigh, NC
    Posts
    13
    Vote Rating
    0
      0  

    Default

    I'm using 4.1 beta2 and tried all these combinations of configs on my grid. They provide a scroll bar, but it doesn't actually allow you to scroll down:

    Ext.create('Ext.grid.Panel',{
    ...
    style: {overflow:'scroll', 'overflow-y':'scroll'},
    style: {overflow:'auto', 'overflow-y':'auto'},
    'overflow-y':'scroll',
    ...
    }

    Now, when if I set a height and autoScroll:true it works fine. But again I don't wanna have a fixed height. I want my grid to fill it's container.

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
  •