It seems that there is a fixed/calculated height with the container for when detail rows are displayed in Ag-Grid. I was able to replicate this issue using Ag-Grid documentation's example on Plunker:
The last Plunker example on this page: https://www.ag-grid.com/javascript-grid-master-detail/
To replicate it, once in Plunker I clicked the chevron to open the sub-table to view the detail rows, then opened DevTools. I inspected the container around the sub-table, and it has a class of "ag-details"row". I added a height value, such as 50%, but it only decreases the height of the rows.
So I have about 2-3 rows in the sub-table. How can I remove the extra space between the bottom of the sub-table and parent row below it?