'Mpdf automatically shrinking table if rowspan has to many data

I'm using Mpdf and i got some strange issue regarding table rowspan. If table have more data in rowspan then they are reducing font size but instead of that i have to shift table to new page.

I have tried many solution of shrink_tables_to_fit to 1 and <table autosize="1"> but none of them are working.

Can someone please help me how to do so?

$mpdf = new Mpdf(['shrink_tables_to_fit' => 1,
                 'tableMinSizePriority'  => true, 
                 'use_kwt'               => true]);

This is mpdf setup of mine.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source