aux88
10 Jul 2007, 3:39 AM
Basically take simple6.html from layout examples, then
center.setContent('<div id="test" style="width:100; height: 100; position: absolute; background: rgb(0, 0, 0)">')
then
var resizer = new Ext.Resizable("test", {
handles: 'all',
minWidth: 10,
minHeight: 10,
maxWidth: 400,
maxHeight: 400,
pinned: true,
draggable: true
});
and try to resize it and then drag
dragging works OK before resizing, but first time after resizing the DIV jumps down-right.
Second dragging after resizing also works fine.
It seems that the jump offest is equeal to the left-top coords of the DIV.
I was able to overcome this by substituting resizer.dd (which is an instance of DDProxy) with DD like this:
resizer.dd = resizer.el.initDD("designer");
center.setContent('<div id="test" style="width:100; height: 100; position: absolute; background: rgb(0, 0, 0)">')
then
var resizer = new Ext.Resizable("test", {
handles: 'all',
minWidth: 10,
minHeight: 10,
maxWidth: 400,
maxHeight: 400,
pinned: true,
draggable: true
});
and try to resize it and then drag
dragging works OK before resizing, but first time after resizing the DIV jumps down-right.
Second dragging after resizing also works fine.
It seems that the jump offest is equeal to the left-top coords of the DIV.
I was able to overcome this by substituting resizer.dd (which is an instance of DDProxy) with DD like this:
resizer.dd = resizer.el.initDD("designer");