Skip to content

Commit

Permalink
* DataGrid.cs: The large value for our vertical scrollbar should
Browse files Browse the repository at this point in the history
	depend on the number of visible rows, instead of trying to re-use the
	value of VisibleRowCount, which is the value of *current* visible
	rows, and can easily end messed up if new rows are added/removed.

2009-11-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>


svn path=/branches/mono-2-4/mcs/; revision=145945
  • Loading branch information
carlosalberto committed Nov 11, 2009
1 parent 2c8c108 commit f579415
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2009-11-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DataGrid.cs: The large value for our vertical scrollbar should
depend on the number of visible rows, instead of trying to re-use the
value of VisibleRowCount, which is the value of *current* visible
rows, and can easily end messed up if new rows are added/removed.

2009-11-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DataGrid.cs: When moving the scroll, *dont* ever end the current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3318,7 +3318,10 @@ internal Rectangle ParentRowsArea {
}

int VLargeChange {
get { return VisibleRowCount; }
get {
// the possible number of visible rows
return cells_area.Height / RowHeight;
}
}

#endregion Instance Properties
Expand Down

0 comments on commit f579415

Please sign in to comment.