Browse Source

Fixes #1026. TextField is redrawing over SuperView limits with unicode characters using NetDriver.

BDisp 4 năm trước cách đây
mục cha
commit
097c82fdf5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Terminal.Gui/Views/TextField.cs

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

@@ -211,7 +211,7 @@ namespace Terminal.Gui {
 
 			int p = first;
 			int col = 0;
-			int width = Frame.Width;
+			int width = Frame.Width + OffSetBackground ();
 			var tcount = text.Count;
 			var roc = new Attribute (Color.DarkGray, Color.Gray);
 			for (int idx = p; idx < tcount; idx++) {