Hi Daniel Batchford,
We have tried to achieve to programmatically generate an N x M layout of tabs in the docking manager, up to 5 items it is arranged as expected after that the items are not arranged in correct position. We are checking on this and will update you in two business days.
Regards,
Gokul T