mirror of https://github.com/vector-im/riot-web
add comment how offset from bottom is calculated
parent
f9d2d45b24
commit
223956a206
|
@ -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…
Reference in New Issue