JavaScript Drag and Drop Grid With Elements of Different Sizes.
Posted
by Paul67
on Stack Overflow
See other posts from Stack Overflow
or by Paul67
Published on 2010-05-28T11:25:18Z
Indexed on
2010/05/28
11:32 UTC
Read the original article
Hit count: 179
I need to be able to drag and drop boxes of differing dimensions on the same grid.
JQuery UI seems to offer 80% of what I'm after particularly the sortable grid the have on their demo page. The only problem is that this grid only works with boxes of identical dimensions.
My requirement is to be able to have the same functionality but with boxes that are sized as multiples of the base unit. For example - let's say the standard box size is 300x300px I would also like the opportunity to show on the same grid a 300x600px and a 600x600px box.
There's no requirement to display boxes that are not multiples of the dimensions of the smallest box size.
© Stack Overflow or respective owner