Kill the last getDOMNode()

This commit is contained in:
David Baker 2015-11-19 11:03:33 +00:00
parent 0dd85d9adf
commit 09b0d221df

View file

@ -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];