@@ -988,10 +988,10 @@ protected override void UpdateSelectedChunk(double y)
988988 var endLine = view . GetVisualLine ( endIdx + 1 ) ;
989989
990990 var rectStartY = startLine != null ?
991- startLine . GetTextLineVisualYPosition ( startLine . TextLines [ 0 ] , VisualYPosition . TextTop ) - view . VerticalOffset :
991+ startLine . GetTextLineVisualYPosition ( startLine . TextLines [ 0 ] , VisualYPosition . LineTop ) - view . VerticalOffset :
992992 0 ;
993993 var rectEndY = endLine != null ?
994- endLine . GetTextLineVisualYPosition ( endLine . TextLines [ ^ 1 ] , VisualYPosition . TextBottom ) - view . VerticalOffset :
994+ endLine . GetTextLineVisualYPosition ( endLine . TextLines [ ^ 1 ] , VisualYPosition . LineBottom ) - view . VerticalOffset :
995995 view . Bounds . Height ;
996996
997997 TrySetChunk ( new ( rectStartY , rectEndY - rectStartY , startIdx , endIdx , true , false ) ) ;
@@ -1008,7 +1008,7 @@ protected override void UpdateSelectedChunk(double y)
10081008 if ( index > diff . Lines . Count )
10091009 break ;
10101010
1011- var endY = line . GetTextLineVisualYPosition ( line . TextLines [ ^ 1 ] , VisualYPosition . TextBottom ) ;
1011+ var endY = line . GetTextLineVisualYPosition ( line . TextLines [ ^ 1 ] , VisualYPosition . LineBottom ) ;
10121012 if ( endY > y )
10131013 {
10141014 lineIdx = index - 1 ;
@@ -1033,10 +1033,10 @@ protected override void UpdateSelectedChunk(double y)
10331033 var endLine = view . GetVisualLine ( endIdx + 1 ) ;
10341034
10351035 var rectStartY = startLine != null ?
1036- startLine . GetTextLineVisualYPosition ( startLine . TextLines [ 0 ] , VisualYPosition . TextTop ) - view . VerticalOffset :
1036+ startLine . GetTextLineVisualYPosition ( startLine . TextLines [ 0 ] , VisualYPosition . LineTop ) - view . VerticalOffset :
10371037 0 ;
10381038 var rectEndY = endLine != null ?
1039- endLine . GetTextLineVisualYPosition ( endLine . TextLines [ ^ 1 ] , VisualYPosition . TextBottom ) - view . VerticalOffset :
1039+ endLine . GetTextLineVisualYPosition ( endLine . TextLines [ ^ 1 ] , VisualYPosition . LineBottom ) - view . VerticalOffset :
10401040 view . Bounds . Height ;
10411041
10421042 TrySetChunk ( new ( rectStartY , rectEndY - rectStartY , startIdx , endIdx , true , false ) ) ;
@@ -1177,10 +1177,10 @@ protected override void UpdateSelectedChunk(double y)
11771177 var endLine = view . GetVisualLine ( endIdx + 1 ) ;
11781178
11791179 var rectStartY = startLine != null ?
1180- startLine . GetTextLineVisualYPosition ( startLine . TextLines [ 0 ] , VisualYPosition . TextTop ) - view . VerticalOffset :
1180+ startLine . GetTextLineVisualYPosition ( startLine . TextLines [ 0 ] , VisualYPosition . LineTop ) - view . VerticalOffset :
11811181 0 ;
11821182 var rectEndY = endLine != null ?
1183- endLine . GetTextLineVisualYPosition ( endLine . TextLines [ ^ 1 ] , VisualYPosition . TextBottom ) - view . VerticalOffset :
1183+ endLine . GetTextLineVisualYPosition ( endLine . TextLines [ ^ 1 ] , VisualYPosition . LineBottom ) - view . VerticalOffset :
11841184 view . Bounds . Height ;
11851185
11861186 diff . GetCombinedRangeForSingleSide ( ref startIdx , ref endIdx , IsOld ) ;
@@ -1198,7 +1198,7 @@ protected override void UpdateSelectedChunk(double y)
11981198 if ( index > lines . Count )
11991199 break ;
12001200
1201- var endY = line . GetTextLineVisualYPosition ( line . TextLines [ ^ 1 ] , VisualYPosition . TextBottom ) ;
1201+ var endY = line . GetTextLineVisualYPosition ( line . TextLines [ ^ 1 ] , VisualYPosition . LineBottom ) ;
12021202 if ( endY > y )
12031203 {
12041204 lineIdx = index - 1 ;
@@ -1223,10 +1223,10 @@ protected override void UpdateSelectedChunk(double y)
12231223 var endLine = view . GetVisualLine ( endIdx + 1 ) ;
12241224
12251225 var rectStartY = startLine != null ?
1226- startLine . GetTextLineVisualYPosition ( startLine . TextLines [ 0 ] , VisualYPosition . TextTop ) - view . VerticalOffset :
1226+ startLine . GetTextLineVisualYPosition ( startLine . TextLines [ 0 ] , VisualYPosition . LineTop ) - view . VerticalOffset :
12271227 0 ;
12281228 var rectEndY = endLine != null ?
1229- endLine . GetTextLineVisualYPosition ( endLine . TextLines [ ^ 1 ] , VisualYPosition . TextBottom ) - view . VerticalOffset :
1229+ endLine . GetTextLineVisualYPosition ( endLine . TextLines [ ^ 1 ] , VisualYPosition . LineBottom ) - view . VerticalOffset :
12301230 view . Bounds . Height ;
12311231
12321232 diff . GetCombinedRangeForBothSides ( ref startIdx , ref endIdx , IsOld ) ;
0 commit comments