diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 5d6e05566087..2729715b2710 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,3 +1,7 @@ +2008-04-28 Jonathan Pobst + + * ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183] + 2008-04-28 George Giolfan * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs index c5398d910128..f27083275e2c 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs @@ -2083,7 +2083,7 @@ private bool UpdateVerticalScrollBar () if (canvas_size.Height > items_area.Height) { show = true; vscrollbar.Maximum = Items.Count - 1; - vscrollbar.LargeChange = Math.Min (items_area.Height / ItemHeight, 0); + vscrollbar.LargeChange = Math.Max (items_area.Height / ItemHeight, 0); } else if (ScrollAlwaysVisible) { show = true; enabled = false;