JBIDE-16321 Smart DnD from jQuery Mobile Palette

Extended drop position correction to allow each palette item
to define its own rules.