소스 검색

Fixes https://github.com/migueldeicaza/gui.cs/pull/681#issuecomment-643625748 ScrollDown.

BDisp 5 년 전
부모
커밋
37187c8d4f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Terminal.Gui/Views/ScrollView.cs

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

@@ -556,7 +556,7 @@ namespace Terminal.Gui {
 		public bool ScrollDown (int lines)
 		{
 			var ny = Math.Max (-contentSize.Height, contentOffset.Y - lines);
-			if (Math.Abs (ny) == contentSize.Height)
+			if (Math.Abs (ny) == contentSize.Height - 1)
 				return false;
 			ContentOffset = new Point (contentOffset.X, ny);
 			return true;