PDA

View Full Version : draggable Resizable in BorderLayout



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");

aux88
12 Jul 2007, 2:15 AM
The following also works:

resizer.dd = resizer.el.initDDProxy("designer");

aux88
12 Jul 2007, 5:05 AM
RC 1.1 problem still exists.
Everything works fine if resizer.el.initDDProxy is called without {dragElId: this.proxy.id}

strandmyr
6 Sep 2007, 9:51 PM
Did you get any solutions on this one? I seem to have a simular problem in my system.

jsakalos
7 Sep 2007, 11:38 AM
Any showcase as per http://extjs.com/forum/showthread.php?t=8887 ?