[Client] 良い感じに

This commit is contained in:
syuilo
2017-03-20 05:13:13 +09:00
parent 9b8208f937
commit 0390820f07
6 changed files with 24 additions and 15 deletions

View File

@@ -335,10 +335,8 @@
};
this.react = () => {
const rect = this.refs.reactButton.getBoundingClientRect();
riot.mount(document.body.appendChild(document.createElement('mk-reaction-picker')), {
top: rect.top + window.pageYOffset,
left: rect.left + window.pageXOffset,
source: this.refs.reactButton,
post: this.p
});
};

View File

@@ -356,10 +356,8 @@
};
this.react = () => {
const rect = this.refs.reactButton.getBoundingClientRect();
riot.mount(document.body.appendChild(document.createElement('mk-reaction-picker')), {
top: rect.top + window.pageYOffset,
left: rect.left + window.pageXOffset,
source: this.refs.reactButton,
post: this.p
});
};