Fix button

This commit is contained in:
miguel
2018-04-29 00:02:31 -04:00
parent 9bd619c74f
commit 53b9350b2e

View File

@@ -65,6 +65,8 @@ namespace Terminal.Gui {
/// <param name="is_default">If set, this makes the button the default button in the current view, which means that if the user presses return on a view that does not handle return, it will be treated as if he had clicked on the button</param>
public Button (ustring text, bool is_default = false) : base ()
{
CanFocus = true;
this.IsDefault = is_default;
Text = text;
int w = text.Length + 4 + (is_default ? 2 : 0);
Width = w;