Skip to content

Commit e88d6bd

Browse files
Illustar0Copilot
andauthored
fix: use DesiredSize.Height for tooltip measurement
Co-authored-by: Copilot <[email protected]>
1 parent 8c1e8e6 commit e88d6bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/RangeSelector/src/RangeSelector.Input.Drag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private double DragThumbVertical(Thumb? thumb, double min, double max, double ne
108108
{
109109
var thumbCenter = nextPos + (thumb.Height / 2);
110110
_toolTip.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
111-
var ttHeight = _toolTip.ActualHeight / 2;
111+
var ttHeight = _toolTip.DesiredSize.Height / 2;
112112

113113
Canvas.SetTop(_toolTip, thumbCenter - ttHeight);
114114
UpdateToolTipPositionForVertical();

0 commit comments

Comments
 (0)