mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-31 02:08:03 +01:00
Fixes requested changes.
This commit is contained in:
@@ -114,8 +114,7 @@ namespace Terminal.Gui {
|
||||
break;
|
||||
}
|
||||
|
||||
int w = TextFormatter.Size.Width - (TextFormatter.Text.Contains (HotKeySpecifier)
|
||||
? Math.Max (Rune.ColumnWidth (HotKeySpecifier), 0) : 0);
|
||||
int w = TextFormatter.Size.Width - GetHotKeySpecifierLength ();
|
||||
GetCurrentWidth (out int cWidth);
|
||||
var canSetWidth = SetWidth (w, out int rWidth);
|
||||
if (canSetWidth && (cWidth < rWidth || AutoSize)) {
|
||||
|
||||
@@ -175,6 +175,7 @@ namespace Terminal.Gui.Views {
|
||||
X = 1,
|
||||
Y = Pos.Center (),
|
||||
Text = "Check this out 你",
|
||||
AutoSize = false,
|
||||
Width = 25
|
||||
};
|
||||
var win = new Window () {
|
||||
@@ -226,8 +227,9 @@ namespace Terminal.Gui.Views {
|
||||
X = 1,
|
||||
Y = Pos.Center (),
|
||||
Text = "Check this out 你",
|
||||
Width = 25,
|
||||
TextAlignment = TextAlignment.Centered
|
||||
TextAlignment = TextAlignment.Centered,
|
||||
AutoSize = false,
|
||||
Width = 25
|
||||
};
|
||||
var win = new Window () {
|
||||
Width = Dim.Fill (),
|
||||
@@ -278,8 +280,9 @@ namespace Terminal.Gui.Views {
|
||||
X = 1,
|
||||
Y = Pos.Center (),
|
||||
Text = "Check this out 你",
|
||||
Width = 25,
|
||||
TextAlignment = TextAlignment.Justified
|
||||
TextAlignment = TextAlignment.Justified,
|
||||
AutoSize = false,
|
||||
Width = 25
|
||||
};
|
||||
var win = new Window () {
|
||||
Width = Dim.Fill (),
|
||||
@@ -330,8 +333,9 @@ namespace Terminal.Gui.Views {
|
||||
X = 1,
|
||||
Y = Pos.Center (),
|
||||
Text = "Check this out 你",
|
||||
Width = 25,
|
||||
TextAlignment = TextAlignment.Right
|
||||
TextAlignment = TextAlignment.Right,
|
||||
AutoSize = false,
|
||||
Width = 25
|
||||
};
|
||||
var win = new Window () {
|
||||
Width = Dim.Fill (),
|
||||
|
||||
Reference in New Issue
Block a user