Fix spelling of 'orientation'
This commit is contained in:
parent
cd88f1ccfb
commit
987528bfe2
2 changed files with 11 additions and 11 deletions
|
|
@ -645,9 +645,9 @@ bindDropdown("split", function(value) {
|
||||||
} else {
|
} else {
|
||||||
var newEditor = (sp.getSplits() == 1);
|
var newEditor = (sp.getSplits() == 1);
|
||||||
if (value == "below") {
|
if (value == "below") {
|
||||||
sp.setOriantation(sp.BELOW);
|
sp.setOrientation(sp.BELOW);
|
||||||
} else {
|
} else {
|
||||||
sp.setOriantation(sp.BESIDE);
|
sp.setOrientation(sp.BESIDE);
|
||||||
}
|
}
|
||||||
sp.setSplits(2);
|
sp.setSplits(2);
|
||||||
|
|
||||||
|
|
@ -20973,7 +20973,7 @@ var Split = function(container, theme, splits) {
|
||||||
this.$splits = 0;
|
this.$splits = 0;
|
||||||
this.$editorCSS = "";
|
this.$editorCSS = "";
|
||||||
this.$editors = [];
|
this.$editors = [];
|
||||||
this.$oriantation = this.BESIDE;
|
this.$orientation = this.BESIDE;
|
||||||
|
|
||||||
this.setSplits(splits || 1);
|
this.setSplits(splits || 1);
|
||||||
this.$cEditor = this.$editors[0];
|
this.$cEditor = this.$editors[0];
|
||||||
|
|
@ -21130,15 +21130,15 @@ var Split = function(container, theme, splits) {
|
||||||
return session;
|
return session;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getOriantation = function() {
|
this.getOrientation = function() {
|
||||||
return this.$oriantation;
|
return this.$orientation;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setOriantation = function(oriantation) {
|
this.setOrientation = function(orientation) {
|
||||||
if (this.$oriantation == oriantation) {
|
if (this.$orientation == orientation) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.$oriantation = oriantation;
|
this.$orientation = orientation;
|
||||||
this.resize();
|
this.resize();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -21147,7 +21147,7 @@ var Split = function(container, theme, splits) {
|
||||||
var height = this.$container.clientHeight;
|
var height = this.$container.clientHeight;
|
||||||
var editor;
|
var editor;
|
||||||
|
|
||||||
if (this.$oriantation == this.BESIDE) {
|
if (this.$orientation == this.BESIDE) {
|
||||||
var editorWidth = width / this.$splits;
|
var editorWidth = width / this.$splits;
|
||||||
for (var i = 0; i < this.$splits; i++) {
|
for (var i = 0; i < this.$splits; i++) {
|
||||||
editor = this.$editors[i];
|
editor = this.$editors[i];
|
||||||
|
|
|
||||||
|
|
@ -455,9 +455,9 @@ bindDropdown("split", function(value) {
|
||||||
} else {
|
} else {
|
||||||
var newEditor = (sp.getSplits() == 1);
|
var newEditor = (sp.getSplits() == 1);
|
||||||
if (value == "below") {
|
if (value == "below") {
|
||||||
sp.setOriantation(sp.BELOW);
|
sp.setOrientation(sp.BELOW);
|
||||||
} else {
|
} else {
|
||||||
sp.setOriantation(sp.BESIDE);
|
sp.setOrientation(sp.BESIDE);
|
||||||
}
|
}
|
||||||
sp.setSplits(2);
|
sp.setSplits(2);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue