I have a portal in a layout that needs to be automatically shrunk to the longest paragraph inside the portal.
There is only option for shrinking that "slide" work only for printing. Do you need it for printed result or PDF?
And at that, only the number of rows can "shrink", you can't use sliding to reduce the height of a row in the portal.
Two different options for different purposes:
Set up a list view layout based on the portal's table with the parent record's fields in the header, grand summary and footer records. The individual records in this list view can now slide up in preview mode, when printing or saving as PDF.
Use either List ( PortalTable::paragraph field ) or ExecuteSQL to create a list of all the paragraphs of data in one large field. (With executeSQL, you can combine date from multiple fields instead of just one field like you can with List.) Either way, put this single field on your layout sized to take the place of your portal.
Retrieving data ...