1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-24 06:02:08 +03:00

add comment how offset from bottom is calculated

This commit is contained in:
Bruno Windels
2020-03-03 15:42:44 +01:00
parent f9d2d45b24
commit 223956a206

View File

@ -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;
},