1. #1
    Sencha User
    Join Date
    Mar 2009
    Location
    france
    Posts
    75
    Vote Rating
    0
    brigot is on a distinguished road

      0  

    Default autoHeight for grid, but with a max height

    autoHeight for grid, but with a max height


    Hello,

    i have a grid where i load the data with a jsonreader.

    sometime, i have few result ( 2/3 )... sometime i have a big result ( 150 +)

    i wish use autoHeight, but with a max height ( 250 for exemple )
    so if this is possible,

    when i get 2 result, i see a small grid, with only 2 line, and when i get a big result, the grid appear with a height and with a scroll bar.

    is it possible ?

    i have found in the documentation this paramater, for Pannel : boxMaxHeight

    but with that that not work.
    Code:
    ...
            ,autoHeight        : true
            ,boxMaxHeight    : 250
            ,autoScroll     : true
    ...
    Thank you if you can help me !

  2. #2
    Sencha User
    Join Date
    Jul 2009
    Posts
    29
    Vote Rating
    1
    mailme_gx is on a distinguished road

      0  

    Default


    hi brigot Im sorry no one has replied in all this time. I wonder if this may help you

    PHP Code:
    listeners: { bodyresize: function(panelwidthheight) { 
        if(
    this.getHeight() > 250
            
    this.setHeight(250);
    }} 
    GX

Thread Participants: 1