in salesforce/canvas/public/javascripts/canvas-all.js [1308:1341]
resize: function (client, size) {
var sh,
ch,
sw,
cw,
s = { height: '', width: '' },
docElement = $$.document().documentElement;
if ($$.isNil(size)) {
sh = docElement.scrollHeight;
ch = docElement.clientHeight;
if (ch !== sh) {
s.height = sh + 'px';
}
sw = docElement.scrollWidth;
cw = docElement.clientWidth;
if (sw !== cw) {
s.width = sw + 'px';
}
} else {
if (!$$.isNil(size.height)) {
s.height = size.height;
}
if (!$$.isNil(size.width)) {
s.width = size.width;
}
}
if (!$$.isNil(s.height) || !$$.isNil(s.width)) {
postit(null, {
type: 'resize',
config: { client: client },
size: s,
});
}
},