1. #1
    Ext User
    Join Date
    Nov 2008
    Posts
    6
    Vote Rating
    0
    kenzhang is on a distinguished road

      0  

    Default [2.0.2] editable cell is not resized correctly when it has focus

    [2.0.2] editable cell is not resized correctly when it has focus


    Hi there,

    Currently I have found one issue about resizing an editable column in a grid.
    I
    Attached Files

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    I don't think the editor should be resized when resizing the column.

    It's much simpler to cancel the editor when resizing a column.

  3. #3
    Ext User
    Join Date
    Nov 2008
    Posts
    6
    Vote Rating
    0
    kenzhang is on a distinguished road

      0  

    Default


    Hi Condor,

    do you mean, while doing the resizing, I should write code myself to get the active editor and cancel it?

    I found that this issue only happens to the normal editor, for other editors, like nested drop down box or date picker, for example cell under 'Light' or 'Available', they are of no problem. It's really strange.

    Thanks
    kenzhang

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Try:
    Code:
    Ext.override(Ext.grid.EditorGridPanel, {
    	initEvents : function(){
            Ext.grid.EditorGridPanel.superclass.initEvents.call(this);
            this.on("bodyscroll", this.stopEditing, this, [true]);
            this.on("columnresize", this.stopEditing, this, [true]);
            if(this.clicksToEdit == 1){
                this.on("cellclick", this.onCellDblClick, this);
            }else {
                if(this.clicksToEdit == 'auto' && this.view.mainBody){
                    this.view.mainBody.on("mousedown", this.onAutoEditClick, this);
                }
                this.on("celldblclick", this.onCellDblClick, this);
            }
            this.getGridEl().addClass("xedit-grid");
        }
    });

  5. #5
    Ext User
    Join Date
    Nov 2008
    Posts
    6
    Vote Rating
    0
    kenzhang is on a distinguished road

      0  

    Default


    Hi Condor,

    it solves my problem perfectly!

    Thank you very much

Thread Participants: 1

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