-
Notifications
You must be signed in to change notification settings - Fork 75
Flexible item size - request for feedback #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Flexible item size - request for feedback #276
Conversation
Hi,
I already started providing a similar solutions (#78) but had not enough time to finish it. In the end, my idea to solve this problem is to have a directive: #138. This approach seems to not interfere so much in the core of gridster and I think in the end will be less problematic. |
Hello, I'm working on a modification of this project which will enable some gridster items to have a flexible height, based on the size of their contents. I know that flexible item sizes is on your roadmap, so I was hoping you could look over my approach and provide some feedback.
Currently, cell height is computed by the cell width multiplied by a specified ratio, and every row is the same height. With my change, a row's height is computed in one of two different ways:
Items which are not variable height expand to fit their cells as expected.
I did a quick update to the demo, but I wound up breaking scrolling somehow. Also, I did not implement variable width, and I did not test with horizontal direction, since neither of those are requirements for my current project.
Thank you for your time.