mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-31 02:08:03 +01:00
Fixing tests...
This commit is contained in:
@@ -175,7 +175,7 @@ public class TextFormatter
|
||||
bool textWasNull = _text is null && value != null;
|
||||
_text = EnableNeedsFormat (value);
|
||||
|
||||
if (/*(Alignment != TextAlignment.Justified && VerticalAlignment != VerticalTextAlignment.Justified) ||*/ (textWasNull && Size.IsEmpty))
|
||||
// if (/*(Alignment != TextAlignment.Justified && VerticalAlignment != VerticalTextAlignment.Justified) ||*/ (textWasNull && Size.IsEmpty))
|
||||
{
|
||||
Size = CalcRect (0, 0, _text, Direction, TabWidth).Size;
|
||||
}
|
||||
@@ -304,7 +304,7 @@ public class TextFormatter
|
||||
{
|
||||
if (isVertical)
|
||||
{
|
||||
int runesWidth = GetWidestLineLength (linesFormatted, line, TabWidth);
|
||||
int runesWidth = GetWidestLineLength (linesFormatted, 0, line, TabWidth);
|
||||
x = screen.Right - runesWidth;
|
||||
CursorPosition = screen.Width - runesWidth + (_hotKeyPos > -1 ? _hotKeyPos : 0);
|
||||
}
|
||||
@@ -335,7 +335,7 @@ public class TextFormatter
|
||||
{
|
||||
if (isVertical)
|
||||
{
|
||||
int runesWidth = GetWidestLineLength (linesFormatted, line, TabWidth);
|
||||
int runesWidth = GetWidestLineLength (linesFormatted, 0, line, TabWidth);
|
||||
x = screen.Left + line + (screen.Width - runesWidth) / 2;
|
||||
|
||||
CursorPosition = (screen.Width - runesWidth) / 2 + (_hotKeyPos > -1 ? _hotKeyPos : 0);
|
||||
|
||||
Reference in New Issue
Block a user