Functiondojox.image._LightboxDialog._scaleToFit

dojo.require("dojox.image.Lightbox");
defined in dojox/image/Lightbox.js

resize an image to fit within the bounds of the viewport

Usage

function (/*Object*/ size) (view source)
parametertypedescription
sizeObjectThe 'size' object passed around for this image