PDA

View Full Version : Draggable and Resizeable problem in IE



thachun
4 Feb 2010, 6:17 PM
Hi all,

I have a div that is able to be resizeable and draggable. Moreover, I set a constrain region for both of actions in a parent div. Each time onResize event is fired, I reset the constrain region for the drag&drop action. It worked properly in FF but it's really terrible in IE with 2 use cases described below:

1) First if I resize it then
- not able to drag it if its size is nearly equal to its parent div.
- dragging is ok but I can drag it exceed the constrain region if its size is small if compared to its parent.

2) I could drag it if before I had not resized it.

Thanks ahead!

4 Feb 2010, 6:35 PM
never seen this problem. Can you post your code online in a vanilla page so we can test?

thachun
4 Feb 2010, 6:48 PM
The reason is because instead of keeping the Drag & Drop object that used in onResize handler to reset the constrain region, I created a new one.