为什么每次按菜单中的按钮(Extjs4.1)时都会出现此错误。当我尝试点击下面菜单中的任何按钮时,就会发生这种情况。
未捕获TypeError:对象[object Object]没有方法'getPageBox'
这是代码:
dockedItems: [{
xtype: 'toolbar',
items: [{
text: _('Add'),
iconCls: 'entry_add',
action: 'add',
},{
text: _('Search')+':',
},{
xtype: 'textfield',
hideLabel: true,
width: 160,
name: 'searchfield',
enableKeyEvents: true,
},{
xtype: 'tbfill',
},{
text: _('Delete'),
iconCls: 'entry_delete',
action: 'delete',
},{
text: _('Refresh'),
iconCls: 'entry_refresh',
action: 'refresh',
},{
iconCls: 'entry_refresh',
text: 'Actions',
menu: {
xtype: 'menu',
floating: true,
items: [{
text: _('Create Order'),
iconCls: 'entry_delete',
action: 'createorder',
},{
text: _('Stocktalking'),
iconCls: 'entry_delete',
action: 'stocktalking',
},{
text: _('Export'),
iconCls: 'entry_refresh',
action: 'export',
},{
text: _('Import'),
iconCls: 'entry_refresh',
action: 'import',
}],
},
}]