Author: calberto
Date: 2007-12-15 18:58:58 -0500 (Sat, 15 Dec 2007)
New Revision: 91369

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
Log:
2007-12-15  Carlos Alberto Cortez <[EMAIL PROTECTED]>

        * ListBox.cs: When SetBoundsCore gets called, besides
        calling UpdateScrollBars, update the value of
        last_visible_index, since we could need to show more items
        than before, and we need to let the paint routines know that.
        Fixes #344445.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-15 22:57:29 UTC (rev 91368)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-12-15 23:58:58 UTC (rev 91369)
@@ -1,3 +1,11 @@
+2007-12-15  Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+       * ListBox.cs: When SetBoundsCore gets called, besides
+       calling UpdateScrollBars, update the value of
+       last_visible_index, since we could need to show more items
+       than before, and we need to let the paint routines know that.
+       Fixes #344445.
+
 2007-12-14  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
        * ListView.cs: Add DesignerSerializationVisibility attribute to

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs       
2007-12-15 22:57:29 UTC (rev 91368)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs       
2007-12-15 23:58:58 UTC (rev 91369)
@@ -1081,6 +1081,7 @@
 
                        base.SetBoundsCore (x, y, width, height, specified);
                        UpdateScrollBars ();
+                       last_visible_index = LastVisibleItem ();
                }
 
                protected override void SetItemCore (int index,  object value)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to