diff --git a/src/controllers/organisms/RoomView.js b/src/controllers/organisms/RoomView.js index 7f46ff988d..7baab0e10b 100644 --- a/src/controllers/organisms/RoomView.js +++ b/src/controllers/organisms/RoomView.js @@ -671,7 +671,7 @@ module.exports = { var messageWrapper = this.refs.messagePanel; if (messageWrapper === undefined) return null; - var wrapperRect = messageWrapper.getDOMNode().getBoundingClientRect(); + var wrapperRect = ReactDOM.findDOMNode(messageWrapper).getBoundingClientRect(); for (var i = this.state.room.timeline.length-1; i >= 0; --i) { var ev = this.state.room.timeline[i];