subgrid height

When I add rows into the subgrid the height of subgrid does not increase and no scroll appears.

After refreshing the page (F5) and expanding the subgrid its height is increased corresponding to the number of rows.

My question is how can I get the height of subgrid increased immediately after adding rows into the subgrid?

add next line after add row command

I added
but it did not change anything… :frowning:
Should I use any parameters in a line of code you gave me?

Please try to use attached js file instead of original one - it must resolve problem automatically ( no additional code required ) (2.24 KB)