From 3e87e043d67f567da9eb9594a63ead07417db65a Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 6 Jul 2015 18:29:24 +0100 Subject: [PATCH] Fix docs --- README.md | 2 +- src/controllers/organisms/RoomView.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 14ef7c29..84317bc3 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ To work on the CSS and Javascript and have the bundle files update as you change the source files, you'll need to do two extra things: 1. Link the react sdk package into the example: - `cd matrix-react-sdk/example; npm link ..` + `cd matrix-react-sdk/examples/trivial; npm link ../../` 2. Start a watcher for the CSS files: `cd matrix-react-sdk; npm run start:css` diff --git a/src/controllers/organisms/RoomView.js b/src/controllers/organisms/RoomView.js index 692e3102..a92ee2c6 100644 --- a/src/controllers/organisms/RoomView.js +++ b/src/controllers/organisms/RoomView.js @@ -98,6 +98,9 @@ module.exports = { componentDidMount: function() { if (this.refs.messageList) { var messageUl = this.refs.messageList.getDOMNode(); + + messageUl.addEventListener('drop', handleDrop); + messageUl.scrollTop = messageUl.scrollHeight; this.fillSpace();