I am using JQuery Draggable Collision ( found here ) and I am trying to resize the drag and drop area (blue square in my JSFiddle) via a simple toggleClass () right now.
As soon as it comes to life (getting bigger due to toggleclass link), I would like to measure the protrusion / collision data and subtract it from the height / width of the surrounding objects.
If debugging is enabled for the plugin, it will show you that it collects protrusion / collision data, but I donโt understand how to use it to โcompressโ red objects while the blue object gets bigger.
This JSfiddle will understand my question more.
JSFiddle: http://jsfiddle.net/jVABm/
And another example of what I'm looking for: http://www.adidas.com/us/homepage.asp
Any help POSSIBLE is much appreciated. Iโm not sure how and if I can, but I would be ready to help for help.
UPDATE : http://jsfiddle.net/tmort/hCw2A/ - I wrote code for dynamically resizing mailboxes according to height. Now I am working on the following problems:
Measuring the width and applying the same effect do not work.
The height does not work if the fields are next to each other.
I want to apply an Isotope script to the size of the script I wrote.
source share