diff --git a/build/demo/kitchen-sink/kitchen-sink-uncompressed.js b/build/demo/kitchen-sink/kitchen-sink-uncompressed.js index cb7933f2..33b244cf 100644 --- a/build/demo/kitchen-sink/kitchen-sink-uncompressed.js +++ b/build/demo/kitchen-sink/kitchen-sink-uncompressed.js @@ -645,9 +645,9 @@ bindDropdown("split", function(value) { } else { var newEditor = (sp.getSplits() == 1); if (value == "below") { - sp.setOriantation(sp.BELOW); + sp.setOrientation(sp.BELOW); } else { - sp.setOriantation(sp.BESIDE); + sp.setOrientation(sp.BESIDE); } sp.setSplits(2); @@ -20973,7 +20973,7 @@ var Split = function(container, theme, splits) { this.$splits = 0; this.$editorCSS = ""; this.$editors = []; - this.$oriantation = this.BESIDE; + this.$orientation = this.BESIDE; this.setSplits(splits || 1); this.$cEditor = this.$editors[0]; @@ -21130,15 +21130,15 @@ var Split = function(container, theme, splits) { return session; }; - this.getOriantation = function() { - return this.$oriantation; + this.getOrientation = function() { + return this.$orientation; }; - this.setOriantation = function(oriantation) { - if (this.$oriantation == oriantation) { + this.setOrientation = function(orientation) { + if (this.$orientation == orientation) { return; } - this.$oriantation = oriantation; + this.$orientation = orientation; this.resize(); }; @@ -21147,7 +21147,7 @@ var Split = function(container, theme, splits) { var height = this.$container.clientHeight; var editor; - if (this.$oriantation == this.BESIDE) { + if (this.$orientation == this.BESIDE) { var editorWidth = width / this.$splits; for (var i = 0; i < this.$splits; i++) { editor = this.$editors[i]; diff --git a/demo/kitchen-sink/demo.js b/demo/kitchen-sink/demo.js index 2765d1b6..63a87fe1 100644 --- a/demo/kitchen-sink/demo.js +++ b/demo/kitchen-sink/demo.js @@ -455,9 +455,9 @@ bindDropdown("split", function(value) { } else { var newEditor = (sp.getSplits() == 1); if (value == "below") { - sp.setOriantation(sp.BELOW); + sp.setOrientation(sp.BELOW); } else { - sp.setOriantation(sp.BESIDE); + sp.setOrientation(sp.BESIDE); } sp.setSplits(2); diff --git a/lib/ace/virtual_renderer.js b/lib/ace/virtual_renderer.js index 4247ac48..2640c898 100644 --- a/lib/ace/virtual_renderer.js +++ b/lib/ace/virtual_renderer.js @@ -666,7 +666,7 @@ var VirtualRenderer = function(container, theme) { }; this.getScrollLeft = function() { - return this.session.getScrollTop(); + return this.session.getScrollLeft(); }; this.getScrollTopRow = function() {