@@ 102-104 (lines=3) @@ | ||
99 | ||
100 | if ($oldElement->getHorizontalAlign() == "center" && $element->getHorizontalAlign() == "center") { |
|
101 | $element->setX($start + $oldElement->getWidth() + ($element->getWidth() / 2)); |
|
102 | } elseif ($oldElement->getHorizontalAlign() == "left" && $element->getHorizontalAlign() == "center") { |
|
103 | $element->setX($start + $oldElement->getWidth() + ($element->getWidth() / 2)); |
|
104 | } elseif ($oldElement->getHorizontalAlign() == "center" && $element->getHorizontalAlign() == "left") { |
|
105 | $element->setX($start + $oldElement->getWidth()); |
|
106 | } elseif ($oldElement->getHorizontalAlign() == "center" && $element->getHorizontalAlign() == "right") { |
|
107 | $element->setX($start + $oldElement->getWidth() + $element->getWidth()); |
|
@@ 106-108 (lines=3) @@ | ||
103 | $element->setX($start + $oldElement->getWidth() + ($element->getWidth() / 2)); |
|
104 | } elseif ($oldElement->getHorizontalAlign() == "center" && $element->getHorizontalAlign() == "left") { |
|
105 | $element->setX($start + $oldElement->getWidth()); |
|
106 | } elseif ($oldElement->getHorizontalAlign() == "center" && $element->getHorizontalAlign() == "right") { |
|
107 | $element->setX($start + $oldElement->getWidth() + $element->getWidth()); |
|
108 | } elseif ($oldElement->getHorizontalAlign() == "right" && $element->getHorizontalAlign() == "right") { |
|
109 | $element->setX($start + $element->getWidth()); |
|
110 | } elseif ($oldElement->getHorizontalAlign() == "right" && $element->getHorizontalAlign() == "center") { |
|
111 | $element->setX($start + ($element->getWidth() / 2)); |
|
@@ 110-112 (lines=3) @@ | ||
107 | $element->setX($start + $oldElement->getWidth() + $element->getWidth()); |
|
108 | } elseif ($oldElement->getHorizontalAlign() == "right" && $element->getHorizontalAlign() == "right") { |
|
109 | $element->setX($start + $element->getWidth()); |
|
110 | } elseif ($oldElement->getHorizontalAlign() == "right" && $element->getHorizontalAlign() == "center") { |
|
111 | $element->setX($start + ($element->getWidth() / 2)); |
|
112 | } elseif ($oldElement->getHorizontalAlign() == "left" && $element->getHorizontalAlign() == "right") { |
|
113 | $element->setX($start + $oldElement->getWidth() + $element->getWidth()); |
|
114 | } elseif ($oldElement->getHorizontalAlign() == "right" && $element->getHorizontalAlign() == "left") { |
|
115 | $element->setX($start); |