djr33
07-20-2010, 12:43 AM
1) Script Title: DOM Drag & Drop script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/domdrag/
3) Describe problem:
When I set a limit, the limit works but it is relative to the top left corner of the object. This means that the object can extend to up width-1 and height-1 off the bottom and/or right of the container I'm trying to use.
It is possible to avoid this by simply using a smaller range based on the known width of the object, but if this object is ever to change width for some reason, or even just be possibly variable width based on how much content it contains, this becomes more difficult.
Is there a way to adapt this to restrict the movement of the object to remaining inside a range, rather than to allowing extension beyond the bottom and right edges?
I've looked through the script, but there is a lot of logic and indirect code in the part that controls this, so I'm not sure how to modify it while not unintentionally changing something crucial.
It is possible to view a test page here, but I believe this is a problem (or feature?) with the system, not my installation.
http://ci-pro.com/iv/dragtest.php
Aside from this, the script is perfect for my current needs.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/domdrag/
3) Describe problem:
When I set a limit, the limit works but it is relative to the top left corner of the object. This means that the object can extend to up width-1 and height-1 off the bottom and/or right of the container I'm trying to use.
It is possible to avoid this by simply using a smaller range based on the known width of the object, but if this object is ever to change width for some reason, or even just be possibly variable width based on how much content it contains, this becomes more difficult.
Is there a way to adapt this to restrict the movement of the object to remaining inside a range, rather than to allowing extension beyond the bottom and right edges?
I've looked through the script, but there is a lot of logic and indirect code in the part that controls this, so I'm not sure how to modify it while not unintentionally changing something crucial.
It is possible to view a test page here, but I believe this is a problem (or feature?) with the system, not my installation.
http://ci-pro.com/iv/dragtest.php
Aside from this, the script is perfect for my current needs.