Resizable Bug with Aspect Ratio and Containment (And Solution!)

Resizable Bug with Aspect Ratio and Containment (And Solution!)


Hey guys, I just came across an old bug which impacted a project I'm
working on, traced it down, and found a fix. The bug allows an element
with both aspectRatio restriction and a containment element to
continue to expand past the aspect ratio once one edge of the element
hits the border of its container.
The Ticket about the patch and more details on the problem is here:
http://dev.jqueryui.com/ticket/4349
Also, there's a currently open critical ticket on the tracker here:
http://dev.jqueryui.com/ticket/4199 for the same issue (if some admin
wants to clean it up).