From f3b5b6354b711922d6ae26c034afacd3faf656b4 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 2 Jul 2015 15:16:19 -0400 Subject: [PATCH] Replace another instance of 'document' that should be 'parent element' in the comments --- contain-element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contain-element.js b/contain-element.js index 304f63f..ca5ee3a 100644 --- a/contain-element.js +++ b/contain-element.js @@ -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)))