Montreux
2 years agoNew Contributor III
Dashboard components pop up auto-size to conent
I have a dashboard with graphs and on the side a series of buttons opening input forms for key assumptions. The forms are usually cube views and sometimes a combo box. I would like the pop up dashboards with the input forms to auto size to the content. I can hard code the height and width but the number of rows/columns in the cube view can change. Is there a good way to auto size these pop up dashboards to their contents? Thanks.
Thoughts:
- The modern trend for popups is to use the option DialogDisplayStyle set to Maximize, effectively taking over the whole page. At that point, the typical issues with scrollbars disappear, and you know what you're working with (the average laptop screen). It's an interaction mode similar to mobile applications.
- An alternative could be to calculate with a rule how many rows your CV is going to expand to, multiply by some number of pixels, to get a very rough estimate of how big the popup might have to be, then set the value on the dashboard object. This would all have to happen before the triggering component is clicked though. It feels pretty overkill, for something like that.