How to calculate the size of an iFrame Back
var calcPageHeight = function(doc) {
var cHeight = Math.max(doc.body.clientHeight, doc.documentElement.clientHeight);
var sHeight = Math.max(doc.body.scrollHeight, doc.documentElement.scrollHeight);
return Math.max(cHeight, sHeight);
};
var calcPageWidth = function(doc, win) {
if (!!win.ActiveXObject && doc.documentMode <= 8 && doc.compatMode === 'CSS1Compat') {
var cWidth = Math.min(doc.body.clientWidth, doc.documentElement.clientWidth);
return cWidth;
} else {
return Math.max(doc.body.clientWidth, doc.documentElement.clientWidth);
}
};
As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.
Notice: This plugin has used Cookie to store your token with an expiration.