-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #552: OnDemandList: Fix first row height calculation
- Loading branch information
Kenneth G. Franqueiro
committed
Sep 13, 2013
1 parent
8b4b929
commit 58fe9ba
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -300,8 +300,14 @@ return declare([List, _StoreMixin], { | |
// plugins that add connected elements to a row, like the tree | ||
|
||
var sibling = rowElement.previousSibling; | ||
return sibling && sibling.offsetTop != rowElement.offsetTop ? | ||
rowElement.offsetHeight : 0; | ||
sibling = sibling && !/\bdgrid-preload\b/.test(sibling.className) && sibling; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
csnover
Member
|
||
|
||
// If a previous row exists, compare the top of this row with the | ||
// previous one (in case "rows" are actually rendering side-by-side). | ||
// If no previous row exists, this is either the first or only row, | ||
// in which case we count its own height. | ||
return sibling ? rowElement.offsetTop - sibling.offsetTop : | ||
rowElement.offsetHeight; | ||
}, | ||
|
||
lastScrollTop: 0, | ||
|
Can we be clear here?
?