How to get lightning combobox list appear on top when there is few rows in lightning Datatable?

My question is similar to this, I have a custom dropdown column which is appearing completely fine when we have many rows in the datatable. But in a sitation when we have a single record, it
Lightning:datatable custom dropdown list items seem to be appearing behind the LWC datatable’s container.