有没有办法在拖动面板时获取面板的当前垂直位置?
我有这样的事情:
Ext.define("App.DashboardDrawer",
{
extend: 'Ext.Panel',
xtype: 'dashboarddrawer',
config: {
cls: 'w-drawer',
height: '380px',
zIndex: 99999,
id: 'drawer-container',
docked: 'bottom',
draggable:{
direction:'vertical',
constraint: {
min: { x: 0, y: 0 },
max: { x: 0, y: 338 }
}
},
listeners:{
drag: function(list, idx, target, record, evt) {
// I'd like to get the current position of the panel here
}
},
...
谢谢。