summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-05 10:24:26 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-05 10:24:26 -0500
commitfafc3bfae4891e72902cef0d38c4c8715dc944e8 (patch)
tree2a9bea72dc76d9ada3e7098c82e81a7ede8881cf /web/react/components
parentb746b314cc7077c8f9342f1318d6821b430772ba (diff)
downloadchat-fafc3bfae4891e72902cef0d38c4c8715dc944e8.tar.gz
chat-fafc3bfae4891e72902cef0d38c4c8715dc944e8.tar.bz2
chat-fafc3bfae4891e72902cef0d38c4c8715dc944e8.zip
Fixed center channel height magic. Fixes tutorial
Diffstat (limited to 'web/react/components')
-rw-r--r--web/react/components/center_panel.jsx4
-rw-r--r--web/react/components/create_post.jsx2
-rw-r--r--web/react/components/posts_view_container.jsx2
3 files changed, 2 insertions, 6 deletions
diff --git a/web/react/components/center_panel.jsx b/web/react/components/center_panel.jsx
index 242c2c637..ea0eec747 100644
--- a/web/react/components/center_panel.jsx
+++ b/web/react/components/center_panel.jsx
@@ -61,9 +61,7 @@ export default class CenterPanel extends React.Component {
<div id='channel-header'>
<ChannelHeader />
</div>
- <div id='post-list'>
- {postsContainer}
- </div>
+ {postsContainer}
<div
className='post-create__container'
id='post-create'
diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx
index 1545cdfaa..4d1874e18 100644
--- a/web/react/components/create_post.jsx
+++ b/web/react/components/create_post.jsx
@@ -236,8 +236,6 @@ export default class CreatePost extends React.Component {
PostStore.storeCurrentDraft(draft);
}
resizePostHolder() {
- const height = this.state.windowHeight - $(ReactDOM.findDOMNode(this.refs.topDiv)).height() - 50;
- $('.post-list-holder-by-time').css('height', `${height}px`);
if (this.state.windowWidth > 960) {
$('#post_textbox').focus();
}
diff --git a/web/react/components/posts_view_container.jsx b/web/react/components/posts_view_container.jsx
index 301057990..761664602 100644
--- a/web/react/components/posts_view_container.jsx
+++ b/web/react/components/posts_view_container.jsx
@@ -261,7 +261,7 @@ export default class PostsViewContainer extends React.Component {
}
return (
- <div>{postListCtls}</div>
+ <div id='post-list'>{postListCtls}</div>
);
}
}