]> source.dussan.org Git - jquery-ui.git/commit
Draggable: fix changing containment
authorBen Higgins <ben@extrahop.com>
Mon, 13 Jan 2014 22:51:06 +0000 (14:51 -0800)
committerTJ VanToll <tj.vantoll@gmail.com>
Mon, 20 Jan 2014 18:08:12 +0000 (13:08 -0500)
commit0bb807bb42af87bf4c6dd4d71808b12c08d316e7
treedaa5c1e023248b819fd831884bfb1cb85816e091
parent998d04d55d4d1da2a9e24eea285349d388a6d0fc
Draggable: fix changing containment

If containment was set such that relative_container is set by
_setContainment, and then containment changes to e.g. "document",
"window", or an array, relative_container would not be unset, causing
incorrect containment of the draggable.

Add a unittest to check that containment with an array works after
previously being set to "parent".

Fixes #9733
Closes gh-1176
tests/unit/draggable/draggable_options.js
ui/jquery.ui.draggable.js