Fixes the extra characters that remains in case the new text length is smaller than the older.

This commit is contained in:
BDisp
2020-03-13 20:19:05 +00:00
parent e2453079b9
commit bb579249fb

View File

@@ -227,6 +227,7 @@ namespace Terminal.Gui {
public virtual ustring Text {
get => text;
set {
Clear (new Rect (Frame.Location, new Size (text.Length, Frame.Height)));
text = value;
recalcPending = true;
SetNeedsDisplay ();