add comment how offset from bottom is calculated
This commit is contained in:
parent
91aa8d4a3a
commit
462c3411b2
1 changed files with 1 additions and 0 deletions
|
@ -765,6 +765,7 @@ export default createReactClass({
|
|||
},
|
||||
|
||||
_topFromBottom(node) {
|
||||
// current capped height - distance from top = distance from bottom of container to top of tracked element
|
||||
return this._itemlist.current.clientHeight - node.offsetTop;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue