Этот коммит содержится в:
Saturnino Abril
2017-07-06 04:21:04 +08:00
коммит произвёл Joram Wilander
родитель 4efb0f37b7
Коммит 81a893b556
10 изменённых файлов: 155 добавлений и 82 удалений

Просмотреть файл

@@ -320,6 +320,10 @@ export default class RhsThread extends React.Component {
return this.refs.postListContainer;
}
getSidebarBody = () => {
return this.refs.sidebarbody;
}
render() {
if (this.props.posts == null || this.props.selected == null) {
return (
@@ -403,7 +407,10 @@ export default class RhsThread extends React.Component {
}
return (
<div className='sidebar-right__body'>
<div
className='sidebar-right__body'
ref='sidebarbody'
>
<FloatingTimestamp
isScrolling={this.state.isScrolling}
isMobile={Utils.isMobile()}
@@ -460,6 +467,7 @@ export default class RhsThread extends React.Component {
channelId={selected.channel_id}
rootId={selected.id}
latestPostId={postsLength > 0 ? postsArray[postsLength - 1].id : selected.id}
getSidebarBody={this.getSidebarBody}
/>
</div>
</div>