首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Extjs Ext.form.field.Tag,未激发调整大小事件

Extjs Ext.form.field.Tag,未激发调整大小事件
EN

Stack Overflow用户
提问于 2021-02-03 01:15:41
回答 1查看 25关注 0票数 0

调整在其中创建标记域的面板的大小后,标记域的调整大小事件不会触发。下面是代码的一部分

代码语言:javascript
复制
    Ext.application({
    name: 'Fiddle',

    launch: function () {
        var shows = Ext.create('Ext.data.Store', {
            fields: ['id', 'show'],
            data: [{
                id: 0,
                show: 'Battlestar Galactica'
            }, {
                id: 1,
                show: 'Doctor Who'
            }, {
                id: 2,
                show: 'Farscape'
            }, {
                id: 3,
                show: 'Firefly'
            }, {
                id: 4,
                show: 'Star Trek'
            }, {
                id: 5,
                show: 'Star Wars: Christmas Special'
            }]
        });
        var panel = new Ext.panel.Panel({
            layout: {
                type: 'vbox',
                align: 'stretch'
            },
            items: [{
                xtype: 'textfield',
                fieldLabel: 'One Two Three Four Five Six Seven',
                labelAlign: 'top',
                width: '100%'
            }, {
                xtype: 'tagfield',
                fieldLabel: 'One Two Three Four Five Six Seven',
                labelAlign: 'top',
                store: shows,
                displayField: 'show',
                valueField: 'id',
                queryMode: 'local',
                filterPickList: true,
                width: '100%',
                listeners: {
                    resize: function () {
                        debugger, //the event is not fired 

                    }
                }
            }]
        })

        var window = new Ext.Window({
            layout: 'anchor',
            title: 'Hello resizer',
            resizable: {
                dynamic: true
            },

            draggable: true,
            scrollable: 'vertical',
            items: [panel],
            width: 400,
            height: 200,
        });

        window.show();
    }
});
EN

回答 1

Stack Overflow用户

发布于 2021-02-03 01:29:26

正如接口docu中所说:此事件不会在使用cfg-liquidLayout的组件上触发,例如Ext.button.Button和Ext.form.field.Base。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66014471

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档