Kill the last getDOMNode()

This commit is contained in:
David Baker 2015-11-19 11:03:33 +00:00
parent 0dd85d9adf
commit 09b0d221df
1 changed files with 1 additions and 1 deletions

View File

@ -671,7 +671,7 @@ module.exports = {
var messageWrapper = this.refs.messagePanel; var messageWrapper = this.refs.messagePanel;
if (messageWrapper === undefined) return null; 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) { for (var i = this.state.room.timeline.length-1; i >= 0; --i) {
var ev = this.state.room.timeline[i]; var ev = this.state.room.timeline[i];