Introduction
Users can make a table in free format report to grow horizontally in case the content doesn’t fit.
Functional design
We should add the check-box “Grow Horizontally” in Edit layout mode > Control settings for a Table control.
When “Grow Horizontally” is set to true:
If the content fits in the table, then nothing happens.
If the content doesn’t fit in the table, then:
Use the empty space within the table
Decrease the font size of the content
Then the table should grow to the right till the content fits
After that, the report should be recentred on a screen by using the empty space on the left
If there is not enough space on the screen to fully expand the table then we show the scroll bar in the report
Controls with overlapping height should be pushed to the right till the table is fully expanded
We always keep the space between the expanded table and other controls as it was designed
Controls without overlapping height should remain on the same relative place within the report
POV selectors, key messages, and controls that aren’t moving to the right shift together with the left side of a report
If the table content decreases, then:
The table should shrink back (but not less than the original width)
Controls with overlapping height should be pushed to the left keeping the original distance between
The report should be recentred again