jaumard / ngx-dashboard

Dashboard library for angular 4 and more
https://jaumard.github.io/ngx-dashboard/demo/demoDist/index.html
MIT License
71 stars 31 forks source link

Question: Widget sizing based on content #29

Open cyborgdoom opened 7 years ago

cyborgdoom commented 7 years ago

How does one make the widget size auto adjust based on the size of the content within?

jaumard commented 7 years ago

I think it can be tricky but one way to try is to put the content under a scrolled div and get the height, the calculate the number of unit it take depending of what you define as [1,1] and set it to your widget's size, once resize the scroll will not be visible again.

For now that the only way I see to do it...