How to zoom/fit-viewport with palette

Hi,

I use bpmnJS.get('canvas').zoom('fit-viewport') to adjust a diagram to the available space.

However, if the diagram is wide enough, its left-hand side is hidden by the palette.

Is there a way to avoid this? Maybe by specifying some outline/margin values?

Many thanks!