2
0
Эх сурвалжийг харах

Fixes #1145. ScrollBar down arrow is not showing. (#1146)

* Fixes #1145. ScrollBar down arrow is not showing.

* Fixes contentBottomRightCorner visibility when AutoHideScrollBars is false.
BDisp 4 жил өмнө
parent
commit
d03b926921

+ 5 - 0
Terminal.Gui/Views/ScrollBarView.cs

@@ -291,6 +291,9 @@ namespace Terminal.Gui {
 		void ShowHideScrollBars ()
 		{
 			if (!hosted || (hosted && !autoHideScrollBars)) {
+				if (contentBottomRightCorner != null && contentBottomRightCorner.Visible) {
+					contentBottomRightCorner.Visible = false;
+				}
 				return;
 			}
 
@@ -312,6 +315,8 @@ namespace Terminal.Gui {
 				if (Application.mouseGrabView != null && Application.mouseGrabView == this) {
 					Application.UngrabMouse ();
 				}
+			} else {
+				contentBottomRightCorner.Visible = false;
 			}
 			if (showScrollIndicator) {
 				Redraw (Bounds);