RowSelectionAdorner bounds check should use ScrollContentPresenter for X point
This commit is contained in:
1 parent
b292f50d99
commit
dd9ca350af
1 file changed
+4
-1
@@ -74,9 +74,12 @@ namespace mbts.ui.controls.adorners {
|
||||
// the adorner rectangle b/c the bottom of the row will be obscured by the scrollbar
|
||||
var bottom_is_within_bounds = lb.GetChildBounds(row).BottomRight.Y <= _diy_scroll.ActualHeight;
|
||||
if (top_is_within_bounds && bottom_is_within_bounds) {
|
||||
// we use the scroll content presenter in the X point calculation instead of the row
|
||||
// because of the OB which has a right side panel that takes up some space over
|
||||
// row width
|
||||
drawingContext.DrawRectangle(_fill,
|
||||
_stroke,
|
||||
new Rect(top_left, new Point(top_left.X + row.ActualWidth, top_left.Y + row.ActualHeight)));
|
||||
new Rect(top_left, new Point(top_left.X + _diy_scp.ActualWidth, top_left.Y + row.ActualHeight)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user