_setContainment should be called AFTER _cacheHelperProportions (1.6rc6)
Hi,
So, I've been playing with your awesome addon to jquery, and I noticed
that when starting a mouse drag that the "_setContainment()" method
uses the helper's proportions to accurately set the bounding box for
the drag element. However, sometimes the width or height of the
helper is changed by the "start" callback trigger. To handle this
possibility, I notice that you already call the
_cacheHelperProportions again right after the callback is executed.
BUT the _setContainment function has already been called, and so the
containment is not updated!
The soulition would be to move the _setContainment method down a few
lines in the code so that it is called after the call back is executed
OR create a public method for refreshing the containment settings so
that we can call it during our "start" callback trigger OR have the
cacheHelperProportions detect if the proportions have changed, and if
so, call the _setContainment method to compensate.
I would make better suggestions if I knew the ramifications of not
calling _setContainment until after the "start" callback is executed;
but I hope the problem has an easy solution
thank you