Browse Source

removed extraneous changes

Charlie Kindel 5 years ago
parent
commit
222a71d9ea
2 changed files with 4 additions and 5 deletions
  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;
 							Application.CurrentView = view;
 
 
 							// Ensure we don't make the Driver's clip rect any bigger
 							// 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 ();
 								var savedClip = view.ClipToBounds ();
 								view.Redraw (view.Bounds);
 								view.Redraw (view.Bounds);
 								Driver.Clip = savedClip;
 								Driver.Clip = savedClip;

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

@@ -405,9 +405,9 @@ namespace Terminal.Gui {
 			Clear ();
 			Clear ();
 
 
 			if (Driver.Clip.IsEmpty || Driver.Clip.Contains (RectToScreen (Frame))) {
 			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 {
 			} else {
 				contentView.Redraw (contentView.Bounds);
 				contentView.Redraw (contentView.Bounds);
 			}
 			}