From 4522097c027cf9a968b9bca6f4d0a72a9b7ed6d9 Mon Sep 17 00:00:00 2001 From: BDisp Date: Mon, 20 Apr 2020 20:26:05 +0100 Subject: [PATCH] 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. --- .gitattributes | 3 --- Terminal.Gui/Views/TextField.cs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index 7818f5079..35720cb73 100644 --- a/.gitattributes +++ b/.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 diff --git a/Terminal.Gui/Views/TextField.cs b/Terminal.Gui/Views/TextField.cs index 788967b06..81a8613cb 100644 --- a/Terminal.Gui/Views/TextField.cs +++ b/Terminal.Gui/Views/TextField.cs @@ -43,7 +43,7 @@ namespace Terminal.Gui { /// Initial text contents. public TextField (string text) : this (ustring.Make (text)) { - + Height = 1; } ///