From e96f1e70ed9a276d213daa0abf06ee74e6965287 Mon Sep 17 00:00:00 2001 From: DieselMeister Date: Mon, 29 Apr 2019 14:44:41 +0200 Subject: [PATCH] Correct the ScrollView behaviour for vertical scrolling (#186) Corrected the ScrollView behavior for vertical scrolling. In case of a vertical scrollbar the position of the "arrow" can not be determinated by the Bound.Width. --- Terminal.Gui/Views/ScrollView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Views/ScrollView.cs b/Terminal.Gui/Views/ScrollView.cs index c85db8627..eddfe178d 100644 --- a/Terminal.Gui/Views/ScrollView.cs +++ b/Terminal.Gui/Views/ScrollView.cs @@ -208,7 +208,7 @@ namespace Terminal.Gui { if (location == 0) { if (pos > 0) SetPosition (pos - 1); - } else if (location == Bounds.Width - 1){ + } else if (location == barsize + 1){ if (pos + 1 + barsize < Size) SetPosition (pos + 1); } else {