Might help if you provide the dimensions of your bedboard and the size of the gap between the bedboard and the roof when the roof is down.
Also, you should not be sizing "canvas to canvas" - if the mattress is touching the inside of the canvas, it will encourage water ingress through the canvas when it rains.