May 07, 2013, 3:50 PM
[CLOSED] Limit x y drag on Ext.NET 2.x
Hi,
I don't succeed in limiting the drag, the following code works fine in Ex.NET 1
Please help me.
Thank you.
Jimmy
I don't succeed in limiting the drag, the following code works fine in Ex.NET 1
var onDragF = function (e) {
var pel = this.proxy.getEl();
var xPos = pel.getLeft(true);
var yPos = pel.getTop(true);
if (xPos >= 205 && xPos < 1000)
this.x = xPos;
if (yPos >= 36 && yPos < 800)
this.y = yPos;
}
in ext.net 2.x the this.x and this.y don't exist anymore.Please help me.
Thank you.
Jimmy
Last edited by Daniil; May 15, 2013 at 4:10 PM.
Reason: [CLOSED]