mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
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:
committed by
Miguel de Icaza
parent
c4d4b6126d
commit
e96f1e70ed
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user