katoid / angular-grid-layout

Responsive grid with draggable and resizable items for Angular applications.
https://katoid.github.io/angular-grid-layout
MIT License
462 stars 61 forks source link

FEATURES REQUEST - #38

Closed MrMime closed 1 year ago

MrMime commented 2 years ago

It would be usefull an option to force every element in a row to have the same height.

Ex.

I have three elements on row. All with height 1. When I change height of one of them, the others height will be adjust to the same height. So every elements in a row has always the same height.

Thanks

llorenspujol commented 2 years ago

It seems a super niche feature IMO. I don't see it integrated as a standalone feature. What is your actual use case? Can you explain a little bit?

One option I see is expose some kind of callback before each resizing layout update occurs, and there you could do whatever you want... but still, is not a thing that I would like to put, since it has some troubleshooting.

For now, what you can do is: when layout is updated, you loop for each item and set the desired height. After that, you call the KtdGridCompact function, that positions correctly the layout. It would be a provisional solution.

llorenspujol commented 1 year ago

Workarounds for this feature are possible, it is also too specific to implement within the library. Closing it for now.