Author: jackson
Date: 2005-11-18 06:13:11 -0500 (Fri, 18 Nov 2005)
New Revision: 53224
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiChildContext.cs
Log:
* MdiChildContext.cs: Adjust the y position to take the titlebar
into account.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-11-18 10:54:24 UTC (rev 53223)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-11-18 11:13:11 UTC (rev 53224)
@@ -2,6 +2,8 @@
* MdiClient.cs: Calculate when to add and remove scrollbars
correctly.
+ * MdiChildContext.cs: Adjust the y position to take the titlebar
+ into account.
2005-11-18 Jackson Harper <[EMAIL PROTECTED]>
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiChildContext.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiChildContext.cs
2005-11-18 10:54:24 UTC (rev 53223)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MdiChildContext.cs
2005-11-18 11:13:11 UTC (rev 53224)
@@ -156,6 +156,9 @@
int y = Control.HighOrder ((int) m.LParam.ToInt32 ());
form.PointToClient (ref x, ref y);
+
+ // Need to adjust because we are in NC land
+ y += TitleBarHeight;
FormPos pos = FormPosForCoords (x, y);
start = new Point (x, y);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches