fixed styling in firefox

This commit is contained in:
Jan Jongboom 2011-10-13 13:14:31 +02:00
commit aa0d6e935e
2 changed files with 7 additions and 3 deletions

View file

@ -4,13 +4,16 @@
}
.ace_editor .ace_gutter {
width: 20px;
display: inline-block;
width: 25px !important;
display: block;
float: left;
text-align: right;
padding: 0 3px 0 0;
margin-right: 3px;
}
.ace-row { clear: both; }
*.ace_gutter-cell {
-moz-user-select: -moz-none;
-khtml-user-select: none;

View file

@ -71,9 +71,10 @@ exports.render = function(input, mode, theme) {
for(var ix = 0; ix < length; ix++) {
var lineTokens = tokens[ix].tokens;
stringBuilder.push("<div class='ace-row'>");
stringBuilder.push("<span class='ace_gutter ace_gutter-cell' unselectable='on'>" + (ix+1) + "</span>");
textLayer.$renderLine(stringBuilder, 0, lineTokens, true);
stringBuilder.push("<br>");
stringBuilder.push("</div>");
}
// let's prepare the whole html