diff --git a/src/controllers/organisms/RoomView.js b/src/controllers/organisms/RoomView.js index cdc0638b..7f46ff98 100644 --- a/src/controllers/organisms/RoomView.js +++ b/src/controllers/organisms/RoomView.js @@ -683,8 +683,7 @@ module.exports = { var node = this.eventNodes[ev.getId()]; if (!node) continue; - var domNode = node.getDOMNode(); - var boundingRect = domNode.getBoundingClientRect(); + var boundingRect = node.getBoundingClientRect(); if (boundingRect.bottom < wrapperRect.bottom) { return i;