浏览代码

Added a comment as suggested.

BDisp 5 年之前
父节点
当前提交
020d43f8c5
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Terminal.Gui/Core/Window.cs

+ 3 - 0
Terminal.Gui/Core/Window.cs

@@ -201,6 +201,9 @@ namespace Terminal.Gui {
 				if (dragPosition.HasValue) {
 					if (SuperView == null) {
 						Application.Top.SetNeedsDisplay (Frame);
+						// Redraw the entire app window using just our Frame. Since we are 
+						// Application.Top, and our Frame always == our Bounds (Location is always (0,0))
+						// our Frame is actually view-relative (which is what Redraw takes).
 						Application.Top.Redraw (Frame);
 					} else {
 						SuperView.SetNeedsDisplay (Frame);