forked from matrix/element-web
Fix docs
This commit is contained in:
parent
d49c10b3f5
commit
3e87e043d6
|
@ -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:
|
change the source files, you'll need to do two extra things:
|
||||||
|
|
||||||
1. Link the react sdk package into the example:
|
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:
|
2. Start a watcher for the CSS files:
|
||||||
`cd matrix-react-sdk; npm run start:css`
|
`cd matrix-react-sdk; npm run start:css`
|
||||||
|
|
||||||
|
|
|
@ -98,6 +98,9 @@ module.exports = {
|
||||||
componentDidMount: function() {
|
componentDidMount: function() {
|
||||||
if (this.refs.messageList) {
|
if (this.refs.messageList) {
|
||||||
var messageUl = this.refs.messageList.getDOMNode();
|
var messageUl = this.refs.messageList.getDOMNode();
|
||||||
|
|
||||||
|
messageUl.addEventListener('drop', handleDrop);
|
||||||
|
|
||||||
messageUl.scrollTop = messageUl.scrollHeight;
|
messageUl.scrollTop = messageUl.scrollHeight;
|
||||||
|
|
||||||
this.fillSpace();
|
this.fillSpace();
|
||||||
|
|
Loading…
Reference in New Issue