瀏覽代碼

Correct for the comments on the PR and removed two unused imports.

Alexandru Ciobanu 2 年之前
父節點
當前提交
3e19bf70ed
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      Terminal.Gui/Core/View.cs

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

@@ -6,15 +6,13 @@
 //   - Check for NeedDisplay on the hierarchy and repaint
 //   - Layout support
 //   - "Colors" type or "Attributes" type?
-//   - What to surface as "BackgroundCOlor" when clearing a window, an attribute or colors?
+//   - What to surface as "BackgroundColor" when clearing a window, an attribute or colors?
 //
 // Optimizations
 //   - Add rendering limitation to the exposed area
 using System;
-using System.Collections;
 using System.Collections.Generic;
 using System.ComponentModel;
-using System.Diagnostics;
 using System.Linq;
 using NStack;
 
@@ -666,7 +664,7 @@ namespace Terminal.Gui {
 		/// <returns><see langword="true"/> if the size can be set, <see langword="false"/>otherwise.</returns>
 		public bool SetMinWidthHeight ()
 		{
-			if (GetMinWidthHeight (out var size)) {
+			if (GetMinWidthHeight (out Size size)) {
 				Bounds = new Rect (Bounds.Location, size);
 				TextFormatter.Size = GetBoundsTextFormatterSize ();
 				return true;