Live data from Hacker News

Show HN: gridster.js, a drag-and-drop grid plugin that actually works

gridster.net

21–29 of 29 posts

Re: Show HN: gridster.js, a drag-and-drop grid plugin that actually works

#23

Does this implement any auto-layout / best fit methods given a random set of tiles?

There is a "top gravity" attracting widgets towards the top end of the grid. It's the only supported auto-layout feature currently.

We'd like to allow different strategies in the feature, we just started by the one we needed.

Re: Show HN: gridster.js, a drag-and-drop grid plugin that actually works

#25

What are some example use cases? Judging from comments so far, several people need this and plan to use it but I'm having a difficult time thinking of use cases, other than puzzle games.

I use something similar to allow users to manage the order in which images show up on their listings. (we provide a service for people to buy/sell cranes)

Re: Show HN: gridster.js, a drag-and-drop grid plugin that actually works

#26
post #14

This has very interesting drawing bugs in Safari 6 (Mountain Lion): http://dearmacos.tumblr.com/post/28341302336/computer-graphi...

Oops, no Mountain Lions around, was tested and worked ok on Lion's Safari. Will have a look at what can be done, thanks :)

I've been seeing this in many sites including Gmail and Facebook so it's probably not your bug.

Re: Show HN: gridster.js, a drag-and-drop grid plugin that actually works

#27

Very nice! Any tips/issues on making it responsive to the window size? Having just viewed at the demo and not really digging into the code, I am not sure if this is rather obvious or not. Thanks!

Not supported at the moment :(

We've started by building something to fulfill our needs, and responsiveness wasn't in the list for a first version.

Some logic is ran on browser resize, but the grid itself is not resized.

We'd love to add it to future releases!

Re: Show HN: gridster.js, a drag-and-drop grid plugin that actually works

#28
This is the best dnd layout manager I have seen so far and trust me I have played with a lot of them. There is of course some improvement that can be made but that is what github is for. I really hope this project will get enough traction to warrant updates and new features. great job

Re: Show HN: gridster.js, a drag-and-drop grid plugin that actually works

#29

What are some example use cases? Judging from comments so far, several people need this and plan to use it but I'm having a difficult time thinking of use cases, other than puzzle games.

We built it for our own product, Ducksboard. Users can build their own metrics dashboards by adding widgets and arranging them as they like. That's the use case: being able to arrange/sort a set of widgets by dragging and dropping them in an grid. Puzzles, dashboards, image collections, think of any thing built of visuals elements where order counts.

Nice, could be really useful for WYSIWYG web design in general. My first impulse was to try and resize the edges of the boxes, have you thought of implementing this?
Post reply on HN