简单的问题......
看this fiddle - 为什么我无法调整大小/移动窗口?如果我删除onBoxReady()
函数,一切正常......
Ext.define('AWindow', {
extend: 'Ext.window.Window',
xtype: 'a-window',
cls: 'attribute-window',
me: this,
items: [{
...added some items here... (see fiddle)
}],
// this is the function that disables the window move / resize
onBoxReady: function() {
console.log('do something...');
},
closable: true,
draggable: true,
resizable: true
});
答案 0 :(得分:5)
onBoxReady
是受保护的方法,您需要在其中调用父方法:
onBoxReady: function(width, height) {
this.callParent([width, height]);
console.log('do something...');
}