Browse Source

diagnosing broken vertical text

Tig 1 year ago
parent
commit
20402dd74e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Terminal.Gui/Text/TextFormatter.cs

+ 2 - 2
Terminal.Gui/Text/TextFormatter.cs

@@ -320,7 +320,7 @@ public class TextFormatter
                 if (isVertical)
                 if (isVertical)
                 {
                 {
                     int runesWidth = line > 0
                     int runesWidth = line > 0
-                                         ? GetColumnsRequiredForVerticalText (linesFormatted, TabWidth)
+                                         ? GetColumnsRequiredForVerticalText (linesFormatted, tabWidth: TabWidth)
                                          : 0;
                                          : 0;
                     x = screen.Left + runesWidth;
                     x = screen.Left + runesWidth;
                 }
                 }
@@ -335,7 +335,7 @@ public class TextFormatter
             {
             {
                 if (isVertical)
                 if (isVertical)
                 {
                 {
-                    int runesWidth = GetColumnsRequiredForVerticalText (linesFormatted, TabWidth);
+                    int runesWidth = GetColumnsRequiredForVerticalText (linesFormatted, tabWidth: TabWidth);
                     x = screen.Left + line + (screen.Width - runesWidth) / 2;
                     x = screen.Left + line + (screen.Width - runesWidth) / 2;
 
 
                     CursorPosition = (screen.Width - runesWidth) / 2 + (_hotKeyPos > -1 ? _hotKeyPos : 0);
                     CursorPosition = (screen.Width - runesWidth) / 2 + (_hotKeyPos > -1 ? _hotKeyPos : 0);