From b4ca0e07f661e295fd6bbd643ffc582712f7e86d Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 2 Jul 2015 15:10:53 -0400 Subject: [PATCH] Swap middle with center in the comments --- contain-element.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contain-element.js b/contain-element.js index 3985867..b303fd1 100644 --- a/contain-element.js +++ b/contain-element.js @@ -26,7 +26,7 @@ function ContainElement(options) { element.style.width = (elementWidth * scaleFactor) + 'px'; element.style.height = (elementHeight * scaleFactor) + 'px'; - // Anchor the element horizontally to the left/middle/right + // Anchor the element horizontally to the left/center/right if (parentWidth < (elementWidth * scaleFactor)) { switch(options.halign) { case 'left': @@ -45,7 +45,7 @@ function ContainElement(options) { element.style.left = 0 + 'px'; } - // Anchor the element vertically to the top/middle/bottom + // Anchor the element vertically to the top/center/bottom if ((elementHeight * scaleFactor) > parentHeight) { switch(options.valign) { case 'top':