Author: ivanz
Date: 2008-02-11 12:58:19 -0500 (Mon, 11 Feb 2008)
New Revision: 95456
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
Log:
2008-02-11 Ivan N. Zlatev <[EMAIL PROTECTED]>
* PropertyGridView.cs:
- Clear the controls in the drop down form after it is hidden.
- Fix Width sizing of the dropdown editors to match MSFT.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-11 17:35:20 UTC (rev 95455)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-11 17:58:19 UTC (rev 95456)
@@ -1,5 +1,11 @@
2008-02-11 Ivan N. Zlatev <[EMAIL PROTECTED]>
+ * PropertyGridView.cs:
+ - Clear the controls in the drop down form after it is hidden.
+ - Fix Width sizing of the dropdown editors to match MSFT.
+
+2008-02-11 Ivan N. Zlatev <[EMAIL PROTECTED]>
+
* PropertyGridView.cs:
- Fix height for drawing the grid entry
text value, so that it clips multiline text properly.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2008-02-11 17:35:20 UTC (rev 95455)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2008-02-11 17:58:19 UTC (rev 95456)
@@ -893,8 +893,9 @@
Point location;
dropdown_form.Size = control.Size;
control.Dock = DockStyle.Fill;
- dropdown_form.Controls.Clear ();
dropdown_form.Controls.Add (control);
+ dropdown_form.Width = Math.Max (ClientRectangle.Width -
SplitterLocation - (vbar.Visible ? vbar.Width : 0),
+ control.Width);
dropdown_form.Location = PointToScreen (new Point
(grid_textbox.Right - control.Width, grid_textbox.Location.Y + row_height));
location = dropdown_form.Location;
@@ -949,8 +950,8 @@
public void CloseDropDown () {
Control c = dropdown_form.Controls[0];
c.Capture = false;
+ dropdown_form.Hide ();
dropdown_form.Controls.Clear ();
- dropdown_form.Hide ();
}
public void DropDownControl (Control control) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches