1. #1
    Ext User
    Join Date
    Jun 2009
    Posts
    102
    Vote Rating
    0
    js_coder is on a distinguished road

      0  

    Default Hiding the scroll space in a GridPanel?

    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
    js_coder is on a distinguished road

      0  

    Default


    (bump)

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    16,653
    Vote Rating
    583
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      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
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #5
    Sencha User
    Join Date
    Nov 2008
    Posts
    56
    Vote Rating
    0
    gabriele.muscas is on a distinguished road

      0  

    Default


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