Fix positioning error with draggable, revert and grid
authorWMDE-Fisch <christoph.jauera@wikimedia.de>
Fri, 20 Jan 2017 10:01:27 +0000 (11:01 +0100)
committerWMDE-Fisch <christoph.jauera@wikimedia.de>
Mon, 30 Jan 2017 13:03:00 +0000 (14:03 +0100)
commit71e11de2a3dfc9a7c18efb6aa33b9ae45a20bd2e
treef20656d91153ee363197178bc63c0727e989ec56
parent92214baada6e6c5ae061a1034bce51b4342fd021
Fix positioning error with draggable, revert and grid

This minor change fixes an error when using draggable revert and grid.

Since upgrading of jQuery UI probably won't happen in the near future [1]
I looked for another way to fix the issue.

See [2]. Unlike stated in the second comment adding the lines below
won't fix the bug. Moving the lines up fixed the issue.

See also the description of the bug in [3].

[1] https://phabricator.wikimedia.org/T71386
[2] https://bugs.jqueryui.com/ticket/4696
[3] https://phabricator.wikimedia.org/T140965#2944610

Bug: T140965
Change-Id: Ib0f386c6a2447740f44591be70c34cf4a83b88c4
resources/lib/jquery.ui/jquery.ui.draggable.js