Print Preview expanding to full size of browser

Canvas.showPrintPreview() is expanding the full size of browser.But in my case Print Preview should not expand to the Height and Width of the Browser.

SmartClient Version 2.4

Canvas.showPrintPreview(components.toArray(new Canvas[components.size()]), printProperties, title, null);

I am not seeting any size to canvas.is this could be an issue?