Replace another instance of 'document' that should be 'parent element' in the comments

This commit is contained in:
Kevin MacMartin 2015-07-02 15:16:19 -04:00
parent 7378d74b65
commit f3b5b6354b

View file

@ -14,7 +14,7 @@ function ContainElement(options) {
var parentWidth = element.parentElement.offsetWidth;
var parentHeight = element.parentElement.offsetHeight;
// Run the scale/position functionality if able to determine the document width and height
// Run the scale/position functionality if able to determine the parent element's width and height
if ((parentWidth) && (parentHeight)) {
// Calculate the scale factor
if (parentWidth > ((parentHeight / (elementHeight * scaleFactor)) * (elementWidth * scaleFactor)))