Преглед на файлове

Forces the height of the TextField to 1 which is just the valid height instead of driver rows value. (#400)

* Forces the height of the TextField to 1 which is just the valid height instead of driver rows value.

* Fixes an issue in the sln file that despite not having been changed, git reports as changed.
BDisp преди 5 години
родител
ревизия
4522097c02
променени са 2 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. 0 3
      .gitattributes
  2. 1 1
      Terminal.Gui/Views/TextField.cs

+ 0 - 3
.gitattributes

@@ -5,9 +5,6 @@
 # native line endings on checkout.
 *.cs text
 
-# Convert to CRLF line endings on checkout.
-*.sln text eol=crlf
-
 # Convert to LF line endings on checkout.
 *.sh text eol=lf
 

+ 1 - 1
Terminal.Gui/Views/TextField.cs

@@ -43,7 +43,7 @@ namespace Terminal.Gui {
 		/// <param name="text">Initial text contents.</param>
 		public TextField (string text) : this (ustring.Make (text))
 		{
-
+			Height = 1;
 		}
 
 		/// <summary>