@@ -564,8 +564,8 @@ public partial class View {
}
/// <summary>
- /// Called whenever the view needs to be resized. Sets <see cref="Frame"/> and triggers a <see cref="LayoutSubviews()"/>
- /// call.
+ /// Called whenever the view needs to be resized. This is called whenever <see cref="Frame"/>,
+ /// <see cref="View.X"/>, <see cref="View.Y"/>, <see cref="View.Width"/>, or <see cref="View.Height"/> changes.
/// </summary>
/// <remarks>
/// <para>
@@ -490,7 +490,6 @@ public partial class View : Responder, ISupportInitializeNotification {
Text = text == null ? string.Empty : text;
Frame = rect.IsEmpty ? TextFormatter.CalcRect (0, 0, text, direction) : rect;
- OnResizeNeeded ();
AddCommands ();
@@ -36,7 +36,6 @@ public partial class View {
_text = value;
SetHotKey ();
UpdateTextFormatterText ();
- //TextFormatter.Format ();
OnResizeNeeded ();
#if DEBUG
@@ -118,8 +118,6 @@ public class Button : View {
_isDefault = is_default;
Text = text ?? string.Empty;
-
// Override default behavior of View
// Command.Default sets focus
AddCommand (Command.Accept, () => { OnClicked (); return true; });
@@ -86,8 +86,6 @@ public class CheckBox : View {
AutoSize = true;
Text = s;
// Things this view knows how to do
AddCommand (Command.ToggleChecked, () => ToggleChecked ());
AddCommand (Command.Accept, () => {