mirror of https://github.com/vector-im/riot-web
Kill the last getDOMNode()
parent
0dd85d9adf
commit
09b0d221df
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue