Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
d03b926921
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Terminal.Gui/Views/ScrollBarView.cs

+ 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);