vpusher / the-grid

Grid layout custom element with drag and drop capabilities
https://www.webcomponents.org/element/vpusher/the-grid
MIT License
129 stars 32 forks source link

Infinitely resizing grid #10

Closed yorrd closed 7 years ago

yorrd commented 7 years ago

You've talked about this in the other thread. Basically, we'd have an option whether the grid should be expanding automatically or not. If it should, the grid will respond dynamically in size when adding, moving or resizing children. If not, the behavior right now is kept.

Pull request coming soon...

yorrd commented 7 years ago

actually, coming right now. Have a look whether you like it this way: https://github.com/vpusher/the-grid/pull/11

JosefJezek commented 7 years ago

Do you plan responsive layout?

yorrd commented 7 years ago

@JosefJezek i have yet to write the rest of the pull reqeust. Have a look, @vpusher wanted some changes i havent come around to implementing. If you want, fork my fork and finish the pull request. Otherwise, wait for me to get it done, which I cant promise this week

vpusher commented 7 years ago

@JosefJezek actually, you can already make it responsive since you can bind its cell-width, col-count, ... attributes depending on whatever you want: events, media queries, ... I will add a responsive demo in the next release so you can use it.

yorrd commented 7 years ago

@all, I have finalized the pull request, waiting for approval @vpusher I found it hard to do that from the outside, and somewhat unreliable. Excited to see your demo though, maybe I just missed something

vpusher commented 7 years ago

@JosefJezek here is the responsive sample: demo/responsive.html

vpusher commented 7 years ago

Delivered in v1.2.0. Enjoy.