more folding css tweaks
This commit is contained in:
parent
01af029c30
commit
dac9d03944
2 changed files with 13 additions and 7 deletions
|
|
@ -388,7 +388,10 @@ var Text = function(parentEl) {
|
|||
|
||||
if (!this.$textToken[token.type]) {
|
||||
var classes = "ace_" + token.type.replace(/\./g, " ace_");
|
||||
stringBuilder.push("<span class='", classes, "'>", output, "</span>");
|
||||
var style = "";
|
||||
if (token.type == "fold")
|
||||
style = " style='width:" + (token.value.length * this.config.characterWidth) + "px;' ";
|
||||
stringBuilder.push("<span class='", classes, "'", style, ">", output, "</span>");
|
||||
}
|
||||
else {
|
||||
stringBuilder.push(output);
|
||||
|
|
@ -400,7 +403,6 @@ var Text = function(parentEl) {
|
|||
var chars = 0;
|
||||
var split = 0;
|
||||
var splitChars;
|
||||
var characterWidth = this.config.characterWidth;
|
||||
var screenColumn = 0;
|
||||
var self = this;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue