File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class Marker {
165
165
} else {
166
166
this . elt (
167
167
clazz + " ace_br1 ace_start" ,
168
- "height:" + height + "px;" + "right:0 ;" + "top:" + top + "px;left:" + left + "px;" + ( extraStyle || "" )
168
+ "height:" + height + "px;" + "right:" + padding + "px ;"+ "top:" + top + "px;left:" + left + "px;" + ( extraStyle || "" )
169
169
) ;
170
170
}
171
171
// from start of the last line to the selection end
@@ -197,7 +197,7 @@ class Marker {
197
197
this . elt (
198
198
clazz + ( radiusClass ? " ace_br" + radiusClass : "" ) ,
199
199
"height:" + height + "px;" +
200
- "right:0 ;" +
200
+ "right:" + padding + "px ;"+
201
201
"top:" + top + "px;" +
202
202
"left:" + padding + "px;" + ( extraStyle || "" )
203
203
) ;
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ module.exports = {
114
114
assert . equal ( markerSize . height , lineHeight ) ;
115
115
// Should start at the 13th character (including 4px offset)
116
116
assert . equal ( markerSize . left , 12 * characterWidth + 4 ) ;
117
- // Shoud be as wide as the marker layer - 12 characters and the offset.
118
- assert . equal ( markerSize . width , editor . renderer . $markerBack . element . getBoundingClientRect ( ) . width - 12 * characterWidth - 4 ) ;
117
+ // Shoud be as wide as the marker layer - 12 characters and the offset on both sides .
118
+ assert . equal ( markerSize . width , editor . renderer . $markerBack . element . getBoundingClientRect ( ) . width - 12 * characterWidth - 4 - 4 ) ;
119
119
} ,
120
120
"test: should default to markers of text type" : function ( ) {
121
121
editor . resize ( true ) ;
You can’t perform that action at this time.
0 commit comments