Skip to content

Commit

Permalink
2008-04-28 Jonathan Pobst <monkey@jpobst.com>
Browse files Browse the repository at this point in the history
	* ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]

svn path=/trunk/mcs/; revision=102051
  • Loading branch information
jpobst committed Apr 28, 2008
1 parent 1e72fad commit 5c865e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2008-04-28 Jonathan Pobst <monkey@jpobst.com>

* ListBox.cs: Math.Min should be Math.Max. [Fixes bug #384183]

2008-04-28 George Giolfan <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c865e3

Please sign in to comment.