swiety85 / angular2gridster

Angular implementation of well known Gridster (no jQuery, no external libraries, only Angular and Rx.js).
https://swiety85.github.io/angular2gridster/
MIT License
203 stars 75 forks source link

Directive for item auto-height #138

Open swiety85 opened 6 years ago

swiety85 commented 6 years ago

This issue is continuation for #78. Directive will be responsible for adjusting size of parent girdster-item to fit the content. Directive should be optionally assigned to container that is scrollable inside item. If overflow is assigned to .gridster-item-inner, directive should be assigned to girdster-item element. Should be implemented after #98.

gabyrappaport commented 6 years ago

Hi Swiety, Thank you so much for this amazing library! I am using it for a project and would love to have access to the auto-height functionality. When do you think you will be able to work on it? Thanks!!!

MaiGhoneim commented 6 years ago

Hi Swiety, thank you for such wonderful library. your gridster implementation is the first implementation i found this feature on it. good job, any dates when it will be production ready ?

swiety85 commented 6 years ago

Hi, I am glad that you like it. I will try to deliver this directive till the end of Juli.

dcotegpg commented 5 years ago

Hi Swiety, Is this directive has been added to the code already or if not, do you think it will be added soon? I need something like this to adapt the gridster item height to the content in tabs.

Thanks a lot

swiety85 commented 5 years ago

Hi @dcotegpg, unfortunately, I can't promise any date of delivering this directive. Till this time I suggest to use the solution suggested in issue #78.

dcotegpg commented 5 years ago

Ok I'll try with this solution. Thanks

HMubaireek commented 5 years ago

Hi @swiety85, I'm using angular2gridster in creating a dynamic dashboard. I've a right a menu that when toggled open, all gridster-items change their heights and become scrollable. Is this directive supposed to fix that? I'm looking for a way to keep the same height while adjusting the width only. I tried the method in #78 but it didn't work.

swiety85 commented 5 years ago

Hi, in your case I can for now suggest to change widthHeightRatio in the moment of opening the menu to have the widgets higher.

HMubaireek commented 5 years ago

Thanks @swiety85 that have got the job done.

2Code4Days commented 5 years ago

Hey @swiety85, I am using angular2gridster in a project, and I was wondering if there had been any recent update on this dynamic height to match content issue.