Hi!
This is the on-drop function I use on all my widgets. It works fine when moving widgets on top of a widget that’s in its default position. The widget that’s being dropped on has not been changed since its creation:
http://puu.sh/lsWl8/f7e4c9cf2d.jpg
Result (Good):
http://puu.sh/lsWcO/68859edf3c.jpg
But if I move the widget that is getting dropped on, it places the dropped widget as if the dropped-on widget hasn’t been moved:
http://puu.sh/lsWnO/2571e1b024.jpg
Result (Bad, resulting drop location is as if the dropped-on widgets position never changed):
http://puu.sh/lsWnO/2571e1b024.jpg
This is the On Drop function I use in my widgets:
http://puu.sh/lsVYE/db02ab0887.png
And this is the On Drag Detected:
http://puu.sh/lsWEL/cd405b050c.png
Am I missing something obvious here?
Thanks for any help!