Explorar o código

Fixes #961. Recreates the Frame when necessary.

BDisp %!s(int64=4) %!d(string=hai) anos
pai
achega
582cc72165
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Terminal.Gui/Core/View.cs

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

@@ -1690,7 +1690,10 @@ namespace Terminal.Gui {
 				else
 					h = Math.Max (height.Anchor (hostFrame.Height - _y), 0);
 			}
-			Frame = new Rect (_x, _y, w, h);
+			var r = new Rect (_x, _y, w, h);
+			if (Frame != r) {
+				Frame = new Rect (_x, _y, w, h);
+			}
 		}
 
 		// https://en.wikipedia.org/wiki/Topological_sorting