mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes #965. Broken buttons
This commit is contained in:
@@ -145,7 +145,9 @@ namespace Terminal.Gui {
|
||||
base.Text = ustring.Make (_leftBracket) + " " + text + " " + ustring.Make (_rightBracket);
|
||||
|
||||
int w = base.Text.RuneCount - (base.Text.Contains (HotKeySpecifier) ? 1 : 0);
|
||||
if (Width is Dim.DimCombine) {
|
||||
if (!(Width is Dim.DimCombine)) {
|
||||
Width = w;
|
||||
} else {
|
||||
// It's a Dim.DimCombine and so can't be assigned. Let it have it's own anchor.
|
||||
w = Width.Anchor (w);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user