Этот коммит содержится в:
Asaad Mahmood
2015-10-14 17:04:13 +05:00
родитель cbefd88951
Коммит 99f243b444
15 изменённых файлов: 74 добавлений и 42 удалений

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

@@ -192,9 +192,12 @@ export default class CreatePost extends React.Component {
PostStore.storeCurrentDraft(draft);
}
resizePostHolder() {
const height = $(window).height() - $(React.findDOMNode(this.refs.topDiv)).height() - $('#error_bar').outerHeight() - 50;
const height = $(window).height() - $(React.findDOMNode(this.refs.topDiv)).height() - 50;
$('.post-list-holder-by-time').css('height', `${height}px`);
$(window).trigger('resize');
if ($(window).width() > 960) {
$('#post_textbox').focus();
}
}
handleUploadStart(clientIds, channelId) {
const draft = PostStore.getDraft(channelId);