diff --git a/mindplot/src/main/javascript/nlayout/BalancedSorter.js b/mindplot/src/main/javascript/nlayout/BalancedSorter.js
index 9249e3ab..050a573d 100644
--- a/mindplot/src/main/javascript/nlayout/BalancedSorter.js
+++ b/mindplot/src/main/javascript/nlayout/BalancedSorter.js
@@ -149,7 +149,7 @@ mindplot.nlayout.BalancedSorter = new Class({
}
var yOffset = ysum + heights[i].height/2;
- var xOffset = direction * (node.getSize().width + mindplot.nlayout.SymetricSorter.INTERNODE_HORIZONTAL_PADDING);
+ var xOffset = direction * (node.getSize().width + mindplot.nlayout.SymmetricSorter.INTERNODE_HORIZONTAL_PADDING);
$assert(!isNaN(xOffset), "xOffset can not be null");
$assert(!isNaN(yOffset), "yOffset can not be null");
diff --git a/mindplot/src/main/javascript/nlayout/GridSorter.js b/mindplot/src/main/javascript/nlayout/GridSorter.js
index 75bbe773..7ee470bd 100644
--- a/mindplot/src/main/javascript/nlayout/GridSorter.js
+++ b/mindplot/src/main/javascript/nlayout/GridSorter.js
@@ -16,7 +16,7 @@
* limitations under the License.
*/
mindplot.nlayout.GridSorter = new Class({
- Extends: mindplot.nlayout.SymetricSorter,
+ Extends: mindplot.nlayout.SymmetricSorter,
computeOffsets: function(treeSet, node) {
$assert(treeSet, "treeSet can no be null.");
diff --git a/mindplot/src/main/javascript/nlayout/OriginalLayout.js b/mindplot/src/main/javascript/nlayout/OriginalLayout.js
index 5d117d45..406b97ad 100644
--- a/mindplot/src/main/javascript/nlayout/OriginalLayout.js
+++ b/mindplot/src/main/javascript/nlayout/OriginalLayout.js
@@ -28,7 +28,7 @@ mindplot.nlayout.OriginalLayout = new Class({
var strategy = type === 'root' ?
mindplot.nlayout.OriginalLayout.BALANCED_SORTER :
- mindplot.nlayout.OriginalLayout.SYMETRIC_SORTER;
+ mindplot.nlayout.OriginalLayout.SYMMETRIC_SORTER;
return new mindplot.nlayout.Node(id, size, position, strategy);
},
@@ -120,7 +120,7 @@ mindplot.nlayout.OriginalLayout = new Class({
});
-mindplot.nlayout.OriginalLayout.SYMETRIC_SORTER = new mindplot.nlayout.SymetricSorter();
+mindplot.nlayout.OriginalLayout.SYMMETRIC_SORTER = new mindplot.nlayout.SymmetricSorter();
mindplot.nlayout.OriginalLayout.GRID_SORTER = new mindplot.nlayout.GridSorter();
mindplot.nlayout.OriginalLayout.BALANCED_SORTER = new mindplot.nlayout.BalancedSorter();
diff --git a/mindplot/src/main/javascript/nlayout/SymetricSorter.js b/mindplot/src/main/javascript/nlayout/SymmetricSorter.js
similarity index 93%
rename from mindplot/src/main/javascript/nlayout/SymetricSorter.js
rename to mindplot/src/main/javascript/nlayout/SymmetricSorter.js
index 63f59f12..68d91d5d 100644
--- a/mindplot/src/main/javascript/nlayout/SymetricSorter.js
+++ b/mindplot/src/main/javascript/nlayout/SymmetricSorter.js
@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-mindplot.nlayout.SymetricSorter = new Class({
+mindplot.nlayout.SymmetricSorter = new Class({
Extends: mindplot.nlayout.ChildrenSorterStrategy,
initialize:function() {
@@ -28,7 +28,7 @@ mindplot.nlayout.SymetricSorter = new Class({
},
_computeChildrenHeight : function(treeSet, node, heightCache) {
- var height = node.getSize().height + (mindplot.nlayout.SymetricSorter.INTERNODE_VERTICAL_PADDING * 2); // 2* Top and down padding;
+ var height = node.getSize().height + (mindplot.nlayout.SymmetricSorter.INTERNODE_VERTICAL_PADDING * 2); // 2* Top and down padding;
var result;
var children = treeSet.getChildren(node);
@@ -74,7 +74,7 @@ mindplot.nlayout.SymetricSorter = new Class({
// Ok, no overlap. Suggest a new order.
if (result) {
var last = children.getLast();
- result = [last.getOrder() + 1,{x:cpos.x,y:cpos.y - (mindplot.nlayout.SymetricSorter.INTERNODE_VERTICAL_PADDING * 4)}];
+ result = [last.getOrder() + 1,{x:cpos.x,y:cpos.y - (mindplot.nlayout.SymmetricSorter.INTERNODE_VERTICAL_PADDING * 4)}];
}
return result;
@@ -152,7 +152,7 @@ mindplot.nlayout.SymetricSorter = new Class({
var direction = parent.getPosition().x > 0 ? 1 : -1;
var yOffset = ysum + heights[i].height/2;
- var xOffset = direction * (node.getSize().width + mindplot.nlayout.SymetricSorter.INTERNODE_HORIZONTAL_PADDING);
+ var xOffset = direction * (node.getSize().width + mindplot.nlayout.SymmetricSorter.INTERNODE_HORIZONTAL_PADDING);
$assert(!isNaN(xOffset), "xOffset can not be null");
$assert(!isNaN(yOffset), "yOffset can not be null");
@@ -171,7 +171,7 @@ mindplot.nlayout.SymetricSorter = new Class({
}
});
-mindplot.nlayout.SymetricSorter.INTERNODE_VERTICAL_PADDING = 5;
-mindplot.nlayout.SymetricSorter.INTERNODE_HORIZONTAL_PADDING = 5;
+mindplot.nlayout.SymmetricSorter.INTERNODE_VERTICAL_PADDING = 5;
+mindplot.nlayout.SymmetricSorter.INTERNODE_HORIZONTAL_PADDING = 5;
diff --git a/mindplot/src/test/javascript/static/layout.html b/mindplot/src/test/javascript/static/layout.html
index bb64267d..35958da0 100644
--- a/mindplot/src/test/javascript/static/layout.html
+++ b/mindplot/src/test/javascript/static/layout.html
@@ -12,7 +12,7 @@
-
+