Author: calberto
Date: 2007-07-27 13:11:45 -0400 (Fri, 27 Jul 2007)
New Revision: 82872
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
2007-07-27 Carlos Alberto Cortez <[EMAIL PROTECTED]>
* ListView.cs: Take into account the region used by header
control when doing the vertical scroll (this way we invalidate
the precise area, and don't get any dirty one).
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-07-27 16:40:58 UTC (rev 82871)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-07-27 17:11:45 UTC (rev 82872)
@@ -1,3 +1,9 @@
+2007-07-27 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+ * ListView.cs: Take into account the region used by header
+ control when doing the vertical scroll (this way we invalidate
+ the precise area, and don't get any dirty one).
+
2007-07-27 Everaldo Canuto <[EMAIL PROTECTED]>
* FileDialog.cs: Check for valid filterIndex on button open/save.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2007-07-27 16:40:58 UTC (rev 82871)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2007-07-27 17:11:45 UTC (rev 82872)
@@ -2812,6 +2812,11 @@
if (v_marker != v_scroll.Value) {
int pixels = v_marker - v_scroll.Value;
Rectangle area = item_control.ClientRectangle;
+ if (header_control.Visible) {
+ area.Y += header_control.Height;
+ area.Height -= header_control.Height;
+ }
+
v_marker = v_scroll.Value;
XplatUI.ScrollWindow (item_control.Handle,
area, 0, pixels, false);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches