1. #11
    Touch Premium Member allistar's Avatar
    Join Date
    May 2008
    Location
    Mount Maunganui, Bay of Plenty, New Zealand
    Posts
    42
    Vote Rating
    0
    allistar is on a distinguished road

      0  

    Default


    I have solved this in an acceptable manner with a Panel plugin, the source of which is here:

    Code:
    PET.Plugins.PanelExtender = function(component, config) {
        Ext.apply(this, config);
    
        // call parent
        PET.Plugins.PanelExtender.superclass.constructor.call(this);
    };
    
    
    Ext.extend(PET.Plugins.PanelExtender, Ext.util.Observable, {
    
        init: function(panel)  {
            this.panel = panel;
    
            if (panel.collapsed)
                this.startedCollapsed = true;
            //listen for the "expand" event
            panel.on({
                expand:{scope:this, fn:function() {
                    //find all grids and refit their columns
                    if (this.startedCollapsed) {
                        this.processExpand();
                    }
                }}
            });
    
        },
    
        processExpand: function() {
            this.panel.cascade(this.processChild, this);
        },
    
        processChild: function(node) {
            if (node.getXType() == 'grid')
                node.getView().fitColumns(false, false, 0);
        }
    });
    There is a very slight visual effect of the table columns widening, but this is acceptable for the time being.

    Thanks for the help in getting this issues solved. I expect to extend this plug-in in the future as I have seen other layout problems when panels are started collapsed and then expanded.

  2. #12
    Touch Premium Member allistar's Avatar
    Join Date
    May 2008
    Location
    Mount Maunganui, Bay of Plenty, New Zealand
    Posts
    42
    Vote Rating
    0
    allistar is on a distinguished road

      0  

    Default


    I have discovered that I get more favourable results by calling GridView.autoExpand instead of GridView.fitColumns.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi