dustmoo / gridster.js

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

Gridster, wrong placement while adding widget #41

Open Florentde29 opened 10 years ago

Florentde29 commented 10 years ago

I'd like to use Gridster for one of my first Javascript project, but at this point I have a little problem. When I add a widget in my Gridster, he doesn't go where I want, here a jsfiddle of a sample of my project. When you drag and drop in the drop zone, the widget is created, but not at the good position, like he wasn't in the grid. When you move it manualy he goes in the grid. When you add a new widget you can see he is behind the first one if you let him in the first column and row.

What can I do to fix this ? I'm new with Javascript, and sorry for my bad english :)

Florentde29 commented 10 years ago

Ok I solved my problem, just forgot to add the "gridster class" to my ul. This "gridster class" is defined in the "jquery.gridster.css"

    <div id="blockDroite" class="gridster">Drop zone