Skip to content

Commit 5968456

Browse files
committed
fix: prevent tooltip from showing when vertical placement is not set
1 parent 7a86395 commit 5968456

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/RangeSelector/src/RangeSelector.Input.Key.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ private void MaxThumb_KeyDown(object sender, KeyRoutedEventArgs e)
7474

7575
private void ShowToolTip()
7676
{
77+
var isHorizontal = Orientation == Orientation.Horizontal;
78+
if (!isHorizontal && VerticalToolTipPlacement == VerticalToolTipPlacement.None) return;
7779
if (_toolTip != null)
7880
{
7981
_toolTip.Visibility = Visibility.Visible;

0 commit comments

Comments
 (0)