Results 1 to 5 of 5

Thread: Hiding the scroll space in a GridPanel?

  1. #1
    Ext User
    Join Date
    Jun 2009
    Posts
    102
    Vote Rating
    0
      0  

    Default Hiding the scroll space in a GridPanel?

    I understand that the right-most column in a GridPanel is space reserved for a vertical scrollbar. Is there a way to hide this space without disabling vertical scrolling should the content overflow?

  2. #2
    Ext User
    Join Date
    Jun 2009
    Posts
    102
    Vote Rating
    0
      0  

    Default

    (bump)

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

    Default

    have you tried using firebug to inspect the space and then use CSS to do this?

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,583
    Vote Rating
    873
      0  

    Default

    No there isn't. There's no decent way to programmatically detect whether the scrollbar is needed or not. That's why space is reserved for it all the time.
    Evan Trimboli
    Twitter - @evantrimboli

  5. #5
    Sencha User
    Join Date
    Nov 2008
    Posts
    56
    Vote Rating
    0
      0  

    Default

    Try adding this to the gridPanel:
    Code:
    viewConfig: {
                    forceFit:true,
                    scrollOffset:0
                }

Posting Permissions

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