From b025beb32fc9872fe910a6d436d0b558e54f3efc Mon Sep 17 00:00:00 2001 From: BDisp Date: Fri, 16 Aug 2024 16:27:54 +0100 Subject: [PATCH] Rename id to scrollSlider to avoid conflict with the Slider view. --- Terminal.Gui/Views/Scroll/ScrollSlider.cs | 2 +- UnitTests/Views/ScrollTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Terminal.Gui/Views/Scroll/ScrollSlider.cs b/Terminal.Gui/Views/Scroll/ScrollSlider.cs index 311bfce92..72624a06b 100644 --- a/Terminal.Gui/Views/Scroll/ScrollSlider.cs +++ b/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; diff --git a/UnitTests/Views/ScrollTests.cs b/UnitTests/Views/ScrollTests.cs index f39091c26..c32b24844 100644 --- a/UnitTests/Views/ScrollTests.cs +++ b/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 ();