ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

Сhange placeholder position when block just start overlapping another #304

Open sNICkerssss opened 10 years ago

sNICkerssss commented 10 years ago

In current version you must drag block through the entire height of another to replace them. It's very difficult (frequently impossible), when blocks have big height (for example greater than the height of the monitor screen).

I try to modernize this lib: when one block start's to drag, it's placeholder change it's coordinates when block just start overlapping another.

I got it for situation, when block is dragging up. In original lib in function "set_player" I comment row 1275: if (!$overlapped_widgets.length) {

But I can't reach such result, when block is dragging down.

1