Fix radiogroup rectangle region

This commit is contained in:
Miguel de Icaza
2018-01-10 22:46:54 -05:00
parent 82b7a47702
commit e02714ba65
3 changed files with 2 additions and 3 deletions

View File

@@ -996,7 +996,6 @@ namespace Terminal {
Y = ry,
Flags = me.Flags
};
// Should we bubbled up the event, if it is not handled?
view.MouseEvent (nme);
}

View File

@@ -25,7 +25,7 @@ namespace Terminal {
int width = 0;
foreach (var s in radioLabels)
width = Math.Max (radioLabels.Length + 4, width);
width = Math.Max (s.Length + 4, width);
return new Rect (x, y, width, radioLabels.Length);
}
/// <summary>

View File

@@ -57,7 +57,7 @@ class Demo {
int count = 0;
ml = new Label (new Rect (3, 16, 50, 1), "Mouse: ");
Application.RootMouseEvent += delegate (MouseEvent me) {
ml.Text = $"Mouse: ({me.X},{me.Y}) - {me.Flags} {count++}";
};