Skip to content

Commit

Permalink
Fixed issue sometimes calculating the top position of items wrongly. …
Browse files Browse the repository at this point in the history
…Released Treegrid v1.6.1.
  • Loading branch information
josdejong committed Jul 27, 2015
1 parent 20001fb commit 1f3b797
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions js/src/treegrid/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ CHAP Links Library - TREEGRID
http://almende.github.com/chap-links-library/


2015-07-27, version 1.6.1

- Fixed a bug sometimes calculating the wrong top position of items.


2015-04-08, version 1.6.0

- Actions can now have an additional field `id`.
Expand Down
6 changes: 3 additions & 3 deletions js/src/treegrid/treegrid-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions js/src/treegrid/treegrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
* Copyright (c) 2011-2015 Almende B.V.
*
* @author Jos de Jong, <jos@almende.org>
* @date 2015-04-08
* @version 1.6.0
* @date 2015-07-27
* @version 1.6.1
*/

/*
Expand Down Expand Up @@ -1978,6 +1978,7 @@ links.TreeGrid.Grid.prototype._repaintItems = function () {
for (var i = iStart; i < iEnd; i++) {
var item = this.getItem(i);
item.setVisible(true);
item.top = this._calculateItemTop(item.index);
if (visibleItems.indexOf(item) == -1) {
visibleItems.push(item);
}
Expand Down

0 comments on commit 1f3b797

Please sign in to comment.