The setWidth() method sets the width of the popup window. This method needs to be called after popup created and displayed.
Syntax
popup.setWidth(width);
Arguments
width
width of the popup window in pixels
Return value
No return value.
Example
Open a page in popup and set both width and height to 500 pixels.
var popup = Runner.displayPopup({
url: Runner.pages.getUrl("products","add"),
header: 'Add Product'
});
Now in some other Javascript event you can do this:
popup.setWidth(500);
popup.setHeight(500);
See also