tab to spaces
This commit is contained in:
parent
faca5d8267
commit
d776e30935
1 changed files with 15 additions and 15 deletions
|
|
@ -643,21 +643,21 @@ var VirtualRenderer = function(container, theme) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.showComposition = function(position) {
|
this.showComposition = function(position) {
|
||||||
if (!this.$composition) {
|
if (!this.$composition) {
|
||||||
this.$composition = document.createElement("div");
|
this.$composition = document.createElement("div");
|
||||||
this.$composition.className = "ace_composition";
|
this.$composition.className = "ace_composition";
|
||||||
this.content.appendChild(this.$composition);
|
this.content.appendChild(this.$composition);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$composition.innerHTML = " ";
|
this.$composition.innerHTML = " ";
|
||||||
|
|
||||||
var pos = this.$cursorLayer.getPixelPosition();
|
var pos = this.$cursorLayer.getPixelPosition();
|
||||||
var style = this.$composition.style;
|
var style = this.$composition.style;
|
||||||
style.top = pos.top + "px";
|
style.top = pos.top + "px";
|
||||||
style.left = (pos.left + this.$padding) + "px";
|
style.left = (pos.left + this.$padding) + "px";
|
||||||
style.height = this.lineHeight + "px";
|
style.height = this.lineHeight + "px";
|
||||||
|
|
||||||
this.hideCursor();
|
this.hideCursor();
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setCompositionText = function(text) {
|
this.setCompositionText = function(text) {
|
||||||
|
|
@ -665,14 +665,14 @@ var VirtualRenderer = function(container, theme) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.hideComposition = function() {
|
this.hideComposition = function() {
|
||||||
this.showCursor();
|
this.showCursor();
|
||||||
|
|
||||||
if (!this.$composition)
|
if (!this.$composition)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var style = this.$composition.style;
|
var style = this.$composition.style;
|
||||||
style.top = "-10000px";
|
style.top = "-10000px";
|
||||||
style.left = "-10000px";
|
style.left = "-10000px";
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setTheme = function(theme) {
|
this.setTheme = function(theme) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue