Explorar o código

removed extraneous changes

Charlie Kindel %!s(int64=5) %!d(string=hai) anos
pai
achega
222a71d9ea
Modificáronse 2 ficheiros con 4 adicións e 5 borrados
  1. 1 2
      Terminal.Gui/Core/View.cs
  2. 3 3
      Terminal.Gui/Views/ScrollView.cs

+ 1 - 2
Terminal.Gui/Core/View.cs

@@ -891,8 +891,7 @@ namespace Terminal.Gui {
 							Application.CurrentView = view;
 
 							// Ensure we don't make the Driver's clip rect any bigger
-							if (SuperView != null && SuperView.Bounds.Contains (RectToScreen (Frame))) {
-							//if (Driver.Clip.IsEmpty || Driver.Clip.Contains(RectToScreen (view.Frame))) {
+							if (Driver.Clip.IsEmpty || Driver.Clip.Contains(RectToScreen (view.Frame))) {
 								var savedClip = view.ClipToBounds ();
 								view.Redraw (view.Bounds);
 								Driver.Clip = savedClip;

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

@@ -405,9 +405,9 @@ namespace Terminal.Gui {
 			Clear ();
 
 			if (Driver.Clip.IsEmpty || Driver.Clip.Contains (RectToScreen (Frame))) {
-			var savedClip = ClipToBounds ();
-			contentView.Redraw (contentView.Frame);
-			Driver.Clip = savedClip;
+				var savedClip = ClipToBounds ();
+				contentView.Redraw (contentView.Frame);
+				Driver.Clip = savedClip;
 			} else {
 				contentView.Redraw (contentView.Bounds);
 			}