fix some editor rendering issues
This commit is contained in:
parent
870f265fe5
commit
ba21db0feb
3 changed files with 7 additions and 3 deletions
|
|
@ -7,7 +7,6 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
cursor: text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.gutter {
|
.gutter {
|
||||||
|
|
@ -49,6 +48,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.cursor-layer {
|
.cursor-layer {
|
||||||
|
cursor: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cursor {
|
.cursor {
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ ace.VirtualRenderer = function(container) {
|
||||||
this.container.appendChild(this.$gutter);
|
this.container.appendChild(this.$gutter);
|
||||||
|
|
||||||
this.content = document.createElement("div");
|
this.content = document.createElement("div");
|
||||||
|
this.content.style.position = "absolute";
|
||||||
this.scroller.appendChild(this.content);
|
this.scroller.appendChild(this.content);
|
||||||
|
|
||||||
this.$gutterLayer = new ace.layer.Gutter(this.$gutter);
|
this.$gutterLayer = new ace.layer.Gutter(this.$gutter);
|
||||||
|
|
@ -198,10 +199,12 @@ ace.VirtualRenderer = function(container) {
|
||||||
firstRow : firstRow,
|
firstRow : firstRow,
|
||||||
lastRow : lastRow,
|
lastRow : lastRow,
|
||||||
lineHeight : this.lineHeight,
|
lineHeight : this.lineHeight,
|
||||||
characterWidth : this.characterWidth
|
characterWidth : this.characterWidth,
|
||||||
|
minHeight : minHeight
|
||||||
};
|
};
|
||||||
|
|
||||||
this.content.style.marginTop = (-offset) + "px";
|
this.content.style.marginTop = (-offset) + "px";
|
||||||
|
this.content.style.height = minHeight + "px";
|
||||||
|
|
||||||
for ( var i = 0; i < this.layers.length; i++) {
|
for ( var i = 0; i < this.layers.length; i++) {
|
||||||
var layer = this.layers[i];
|
var layer = this.layers[i];
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ ace.layer.Gutter = function(parentEl) {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.element.innerHTML = html.join("");
|
this.element.innerHTML = html.join("");
|
||||||
|
this.element.style.height = config.minHeight + "px";
|
||||||
};
|
};
|
||||||
|
|
||||||
}).call(ace.layer.Gutter.prototype);
|
}).call(ace.layer.Gutter.prototype);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue