You found a bug! We've classified it as EXTJS-11686 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    2
    Vote Rating
    0
    Inshua is on a distinguished road

      0  

    Default grow combobox layout not include triggerwidth

    grow combobox layout not include triggerwidth


    grow combobox layout not include triggerwidth, so if in a line of fields, combo will overlap the follow field.

    see in ext-4.2.1.883

    QQ截图20131108133547.png

    i have override afterComponentLayout to resolve this problem. since i didn't found the exact position for measuring or setting size.
    Code:
    afterComponentLayout : function(){    
                if(this.grow){
                    this.grow = false;
                    this.setWidth(this.getWidth() + this.getTriggerWidth());
                }
                this.callParent(arguments);            
            }

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,653
    Vote Rating
    402
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Nov 2013
    Posts
    2
    Vote Rating
    2
    wajb is on a distinguished road

      0  

    Default


    Hi, this seems to be a functional workaround:

    Code:
    Ext.define('overrides.layout.component.field.ComboBox', {
        override: 'Ext.layout.component.field.ComboBox',
        
        getTextWidth: function() {
            return this.callParent() + this.owner.getTriggerWidth();
        },
        
        publishOwnerWidth: function(ownerContext, width) {
            var owner = this.owner;
            this.callParent(arguments);
            //if (!owner.grow && !owner.inputWidth) {
                width -= this.getExtraWidth(ownerContext);
                if (owner.labelAlign != 'top') {
                    width -= owner.getLabelWidth();
                }
                ownerContext.inputContext.setWidth(width);
            //}
        }
        
    });

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar