fix editor rendering bugs

This commit is contained in:
Fabian Jakobs 2010-11-25 12:11:38 +01:00 • committed by Joe Walker
commit abb53c3faa
2 changed files with 6 additions and 4 deletions

View file

@ -145,6 +145,7 @@ var Text = function(parentEl) {
this.updateLines = function(layerConfig, firstRow, lastRow) {
this.$computeTabString();
this.config = layerConfig;
var first = Math.max(firstRow, layerConfig.firstRow);
var last = Math.min(lastRow, layerConfig.lastRow);
@ -234,6 +235,7 @@ var Text = function(parentEl) {
this.update = function(config) {
this.$computeTabString();
this.config = config;
var html = [];
var _self = this;

View file

@ -59,14 +59,14 @@ var VirtualRenderer = function(container, theme) {
this.setTheme(theme);
this.scroller = document.createElement("div");
this.scroller.className = "ace_scroller";
this.container.appendChild(this.scroller);
this.$gutter = document.createElement("div");
this.$gutter.className = "ace_gutter";
this.container.appendChild(this.$gutter);
this.scroller = document.createElement("div");
this.scroller.className = "ace_scroller";
this.container.appendChild(this.scroller);
this.content = document.createElement("div");
this.content.style.position = "absolute";
this.scroller.appendChild(this.content);