Hi guys,
i've created my own treecombo which extends TriggerField with autosizing for this component. I would like to create some criteria for autosizing like when height > 300 then use hardcoded height 300 and show vertical scrollbar. Is it somehow possible ? Reason for that is the fact that if i expand many nodes in tree then combo size becames bigger than actual page size is and user is unable to see many of nodes ..

initializaton of combo looks like:

initList: function() {
        var root = new Ext.tree.AsyncTreeNode({
            text: this.rootText
        this.list = new Ext.tree.TreePanel({
            rootVisible: true,
            cls: this.treeCls,
            autoScroll: true,
            containerScroll: true,
            loader: new Ext.tree.TreeLoader(),
            floating: true,
            autoSize: true,
            listeners: {
                click: this.onNodeClick,
                scope: this
            alignTo: function(el, pos) {
                this.setPagePosition(this.el.getAlignToXY(el, pos));
rest of code is not important i guess and i'm using sentcha 3.4
Thx for any help