Dynamically resize a container to fit all cells of a collection widget without scrolling
ThingWorx 9.7.1-b346
I have a mashup which is to contain multiple collections that will contain multiple cells each. The number of cells will depend on the user selected input parameters at run time; anywhere from 3 cells up to 12 is the most (I believe). Each of the collection widgets are using the same child mashup and will use the same configuration however will use data from different sources.
My collections will be in a table format with each cell forming a row the full width of the container. My child mashup and the collection settings are such that each cell needs to be 100px tall, any shorter causes visibility issues for parts of the cell/child mashup.
I need all collection cell rows to be visible at once, not hidden outside of the limits of a container requiring the user to scroll down in the collection container. With multiple collection cells having independent scrolls this can become a significant issue. I have not been able to have all cells visible without scrolling the container or setting a fixed container height large enough to accommodate the maximum of cells however this leads to empty space when less cells are needed. I have the same results with a single collection or multiple collections.
To attempt to resolve the issues I have experimented with Grow ratio and size range settings for the collection containers with little success. A high grow ratio gets close to expanding the container adequately but even at an extreme grow value my largest sets of collection cells will not be fully shown and requires a scroll. Additionally, I'm unable to scroll the page/parent container as a whole so even when I can push the grow ratio far enough to show a full set of collection cells I can not scroll any further down the page to view the next collection or any other elements in my mashup.
I have also tried using the Size Range settings for the collection containers; setting them at 300-1200px (My collections should always be 3-12 cells for any set of inputs). I have tested this combined with various grow ratio settings with seemingly no effect. Choosing the size range setting for container size does enable the vertical scroll dropdown to be set to "Disabled" however this setting does not appear to be respected as I am still seeing a scroll bar on the container with any configuration.
The only workable solution I have found is to simply set the collection containers to a fixed size matching the height of the maximum number of cells that may be contained (max 12 cells * 100px cell height = 1200px fixed container height). This works and looks great with a full 12 cells displayed however when fewer cells are needed there is just extra empty space in the container. Whether the collection is set to be centered, top or bottom oriented this leads to a poor appearance and an unfamiliar user may over look parts of the form, not realizing they must scroll past several cells worth of empty space.
Is there some other option to dynamically resize the container to always display all collection cells without scrolling?
Would it possible to achieve my desired results using a contained mashup instead? It would need to dynamically show the correct number of contained mashup widgets for each row of the data currently used in the collections.
Final idea, Is it possible to bind a value to the container fixed size value? As I know my cells always need to be 100px tall I could calculate the height needed for each collection and bind that value to the containers fixed height parameter. As far as visible in the UI it does not appear that container size parameters are bindable.
I appreciate any advice or discussion on this topic.
Thank you for reading. Have a good weekend.

