2
我有一个可调整大小的extjs面板。我需要在调整大小事件后计算面板的x和y位置。到目前为止,我已经做到了这一点Extjs面板resizer-调整大小后
Panel.resizer = new Ext.Resizable(Panel.el, {
animate: true,
duration: '.6',
easing: 'backIn',
handles: 'all',
constrainTo: 'dropBoxWindow',
pinned: false,
transparent: true
});
Panel.resizer.on("resize", function (oResizable, iWidth, iHeight, e) {
console.log(panel.el.getX()); // getting the x position before the resize..need to get position after resize.
Panel.setHeight(iHeight);
Panel.setWidth(iWidth);
}, this);
有人可以帮助我解决这个
为什么这个问题没有答案?这段代码对你有用吗? – sbgoran
它的工作....... – prajeesh