Results 1 to 4 of 4

Thread: [SOLVED] Which event to use on combobox list resize ?

  1. #1

    Default [SOLVED] Which event to use on combobox list resize ?

    I couldn't find the event that fires on when the comboboxes list resizes (resizable : true on combo config).

    I tried the resize event on combo and tried to attach a resize event on list element (combobox.list.on('resize',fn)) but it did not work.

    any ideas about this problem ?

  2. #2

    Default

    There is a resize listener on combobox so if your isn't working maybe post some code. If you are using a store to populate your combobox then you can put a load listener on that.

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    You can put a resize listener on the list resizer, but you'll have to wait until the list is created, e.g.
    Code:
    var combobox = new Ext.form.ComboBox({
    	initList: function(){
    		var b = !this.list && this.resizable;
    		this.constructor.prototype.initList.call(this);
    		if(b){
    			this.resizer.on('resize', function(){
    				...
    			});
    		}
    	}
    });

  4. #4

    Default

    Quote Originally Posted by Condor View Post
    You can put a resize listener on the list resizer, but you'll have to wait until the list is created, e.g.
    Code:
    var combobox = new Ext.form.ComboBox({
        initList: function(){
            var b = !this.list && this.resizable;
            this.constructor.prototype.initList.call(this);
            if(b){
                this.resizer.on('resize', function(){
                    ...
                });
            }
        }
    });
    thanks a lot Condor, it works

Posting Permissions

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