From c47a172034dd7e98cfc3088d4f5123ff7f0efd80 Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Thu, 20 Sep 2007 14:51:58 +0000 Subject: [PATCH] 2007-09-20 Jonathan Pobst * ToolStripComboBox.cs: Manually set the size of this control in the constructor, as it doesn't seem to be the same as DefaultSize. Fixes a failing monobuild test. svn path=/trunk/mcs/; revision=86063 --- .../Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 6 ++++++ .../System.Windows.Forms/ToolStripComboBox.cs | 3 +++ 2 files changed, 9 insertions(+) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 87ec07fc362..56b13b98b4c 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,9 @@ +2007-09-20 Jonathan Pobst + + * ToolStripComboBox.cs: Manually set the size of this control in the + constructor, as it doesn't seem to be the same as DefaultSize. + Fixes a failing monobuild test. + 2007-09-19 Jonathan Pobst * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue, diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripComboBox.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripComboBox.cs index 79e68c18f2d..ac0851185a8 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripComboBox.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripComboBox.cs @@ -39,6 +39,9 @@ namespace System.Windows.Forms #region Public Constructors public ToolStripComboBox () : base (new ToolStripComboBoxControl ()) { + // The default size of a new ToolStripComboBox doesn't seem + // to be DefaultSize. + Size = new Size (121, 21); } [EditorBrowsable (EditorBrowsableState.Never)] -- 2.25.1