Export to PDF/PNG create only half screen only.

Hi,
I am using export scheduler feature but it is not working properly.
It always print only half screen it also not considering orientation setting,
Please help how to print full screen ,My code as :

function exportScheduler(type) {
var format = document.getElementById(“format”).value;
var orient = document.getElementById(“orient”).value;
var zoom = document.getElementById(“zoom”).value;
if (type == “pdf”)
scheduler.exportToPDF({
format: format,
orientation: orient,
zoom: zoom
});
else
scheduler.exportToPNG({
format: format,
orientation: orient,
zoom: zoom
});
}

Please find attached output which i am getting.


Similar code works for me

docs.dhtmlx.com/scheduler/snippet/cfb0a9d5

Can you update the snippet so it fails as in your case and share the URL