Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    26
    Vote Rating
    1
    steve.brownlee is on a distinguished road

      0  

    Default Setting a maximum, but expandable, display height for an element

    Setting a maximum, but expandable, display height for an element


    Ok, I noticed an old, and apparently deprecated, property on a GridView named maxHeight. After I discovered that it did nothing, I searched the forums and saw some overrides, but I'd rather not use those. I also saw some folks mention to use a container to set the maximum height of a grid.

    Here's my use case.

    I've got three grids that I want stacked vertically. The combined height of all of these grids cannot exceed 900 pixels. However, I don't want all 900 pixels used if each grid only has one or two items in them. That just makes the app looks ugly and awkward.

    If each grid is only 200 pixels in height, I just want the 200 pixels rendered.

    Is there some way to use a border layout, or other container to set a maximum height on the child element but only as a ceiling, not a hard height that will always be used?

    Thanks in advance.

    Note: Please do not provide unrelated information, or judgments on the content of this message. If you have nothing helpful to say that contributes to the solution of the issue, please keep your comments to yourself.

  2. #2
    Sencha User Screamy's Avatar
    Join Date
    Jun 2008
    Posts
    244
    Vote Rating
    0
    Screamy is an unknown quantity at this point

      0  

    Default


    Setting autoHeight: true on each grid should do what you want. I assume you'll place the grids in a container Panel with a fixed height of 900 and autoscroll: true.

    Otherwise, the container Panel could also use autoHeight: true, if you want it to adjust it's height to match the grids.

    Note: People who park their new car diagonally across two parking spaces are just begging to be keyed.
    Last edited by Screamy; 9 Dec 2010 at 12:50 PM. Reason: Additional verbage

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    26
    Vote Rating
    1
    steve.brownlee is on a distinguished road

      0  

    Default


    Thanks for the response, Screamy. That would almost do it. In the case where I set the height of the panel to 900 and simply stack the grids inside it, each grid would still have a dynamic height based on its own content.

    I guess what I'm looking for is a border layout along with your suggestion.

    That way, each grid can only be a maximum of 300px in height so that the user can scroll inside each grid, and not scroll the entire panel. I want all three grids to be visible.

    I'll give that a shot.

  4. #4
    Sencha User
    Join Date
    Dec 2010
    Posts
    26
    Vote Rating
    1
    steve.brownlee is on a distinguished road

      0  

    Default


    Hm, that didn't work either. The individual grids don't scroll if there is overflow. The regions scroll, but then, if the user scrolls, they lose the column headers of each grid.

    This is turning out to be more complicated than I envisioned.

    Code:
        var panel = new Ext.Panel({
            layout:'border',
            height:600,
            renderTo:'chargeCodeDataContainer',
            items:[
                {
                    region: 'north',
                    autoScroll: true,
                    height: 200,
                    items: [RequestGrid]
                },
                {
                    region: 'south',
                    height: 200,
                    autoScroll: true,
                    items: [RequestGrid2]
                },
                {
                    region: 'center',
                    height: 200,
                    autoScroll: true,
                    items: [RequestGrid3]
                }
            ]
        });

Similar Threads

  1. [solved] Grid panel in tab panel with maximum height
    By simonschaufi in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 17 Apr 2010, 2:46 PM
  2. how to give a popup window a maximum height?
    By mickh in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 10 Aug 2008, 7:41 PM
  3. Auto Maximum Height To Container On Grid
    By Zyclops in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 21 Oct 2007, 9:39 PM

Thread Participants: 1

Tags for this Thread