@@ -300,7 +300,7 @@ class Widget {
300
300
const heightAboveLine = aboveLineTop ;
301
301
302
302
// b) the box under the line
303
- const underLineTop = bottomLeft . top + this . _lineHeight ;
303
+ const underLineTop = bottomLeft . top ;
304
304
const heightUnderLine = ctx . viewportHeight - underLineTop ;
305
305
306
306
const aboveTop = aboveLineTop - height ;
@@ -359,7 +359,7 @@ class Widget {
359
359
360
360
private _layoutBoxInPage ( topLeft : Coordinate , bottomLeft : Coordinate , width : number , height : number , ctx : RenderingContext ) : IBoxLayoutResult | null {
361
361
const aboveTop = topLeft . top - height ;
362
- const belowTop = bottomLeft . top + this . _lineHeight ;
362
+ const belowTop = bottomLeft . top ;
363
363
364
364
const domNodePosition = dom . getDomNodePagePosition ( this . _viewDomNode . domNode ) ;
365
365
const absoluteAboveTop = domNodePosition . top + aboveTop - window . scrollY ;
@@ -449,7 +449,7 @@ class Widget {
449
449
const topLeft = new Coordinate ( topForPosition , firstLineMinLeft ) ;
450
450
451
451
const topForBottomLine = ctx . getVerticalOffsetForLineNumber ( lastLine . lineNumber ) - ctx . scrollTop ;
452
- const bottomLeft = new Coordinate ( topForBottomLine , lastLineMinLeft ) ;
452
+ const bottomLeft = new Coordinate ( topForBottomLine + this . _lineHeight , lastLineMinLeft ) ;
453
453
454
454
return [ topLeft , bottomLeft ] ;
455
455
}
0 commit comments