Results 1 to 5 of 5

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

  1. #1
    Ext User
    Join Date
    Nov 2008
    Posts
    6
    Vote Rating
    0
      0  

    Default [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 Attached Files

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      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
      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
    118
      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
      0  

    Default

    Hi Condor,

    it solves my problem perfectly!

    Thank you very much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •