From 09b0d221df47100da6fc6e72d339337e37155c7e Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 19 Nov 2015 11:03:33 +0000 Subject: [PATCH] Kill the last getDOMNode() --- src/controllers/organisms/RoomView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/organisms/RoomView.js b/src/controllers/organisms/RoomView.js index 7f46ff98..7baab0e1 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];