Browse Source

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.
DieselMeister 6 years ago
parent
commit
e96f1e70ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Terminal.Gui/Views/ScrollView.cs

+ 1 - 1
Terminal.Gui/Views/ScrollView.cs

@@ -208,7 +208,7 @@ namespace Terminal.Gui {
 				if (location == 0) {
 				if (location == 0) {
 					if (pos > 0)
 					if (pos > 0)
 						SetPosition (pos - 1);
 						SetPosition (pos - 1);
-				} else if (location == Bounds.Width - 1){
+				} else if (location == barsize + 1){
 					if (pos + 1 + barsize < Size)
 					if (pos + 1 + barsize < Size)
 						SetPosition (pos + 1);
 						SetPosition (pos + 1);
 				} else {
 				} else {