Swap middle with center in the comments

This commit is contained in:
Kevin MacMartin 2015-07-02 15:10:53 -04:00
parent 09752ed55a
commit b4ca0e07f6

View file

@ -26,7 +26,7 @@ function ContainElement(options) {
element.style.width = (elementWidth * scaleFactor) + 'px'; element.style.width = (elementWidth * scaleFactor) + 'px';
element.style.height = (elementHeight * 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)) { if (parentWidth < (elementWidth * scaleFactor)) {
switch(options.halign) { switch(options.halign) {
case 'left': case 'left':
@ -45,7 +45,7 @@ function ContainElement(options) {
element.style.left = 0 + 'px'; 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) { if ((elementHeight * scaleFactor) > parentHeight) {
switch(options.valign) { switch(options.valign) {
case 'top': case 'top':