Browse Source

Rename id to scrollSlider to avoid conflict with the Slider view.

BDisp 11 months ago
parent
commit
b025beb32f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Terminal.Gui/Views/Scroll/ScrollSlider.cs
  2. 1 1
      UnitTests/Views/ScrollTests.cs

+ 1 - 1
Terminal.Gui/Views/Scroll/ScrollSlider.cs

@@ -7,7 +7,7 @@ internal class ScrollSlider : View
     public ScrollSlider (Scroll host)
     {
         _host = host;
-        Id = "slider";
+        Id = "scrollSlider";
         Width = Dim.Auto (DimAutoStyle.Content);
         Height = Dim.Auto (DimAutoStyle.Content);
         WantMousePositionReports = true;

+ 1 - 1
UnitTests/Views/ScrollTests.cs

@@ -692,7 +692,7 @@ public class ScrollTests
                                       });
         }
 
-        Assert.Equal ("slider", Application.MouseGrabView?.Id);
+        Assert.Equal ("scrollSlider", Application.MouseGrabView?.Id);
         Assert.Equal (expectedPos, scroll.Position);
 
         Application.Refresh ();