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.
This commit is contained in:
DieselMeister
2019-04-29 14:44:41 +02:00
committed by Miguel de Icaza
parent c4d4b6126d
commit e96f1e70ed

View File

@@ -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 {