UI Improvements for centre channel due to preview

Этот коммит содержится в:
Asaad Mahmood
2015-11-12 18:09:18 +05:00
родитель 8bd5c4bf47
Коммит 2f95210a29
5 изменённых файлов: 33 добавлений и 24 удалений

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

@@ -252,7 +252,7 @@ export default class Textbox extends React.Component {
if (e.scrollHeight - mod < 167) {
$(e).css({height: 'auto', 'overflow-y': 'hidden'}).height(e.scrollHeight - mod);
$(w).css({height: 'auto'}).height(e.scrollHeight + 2 + previewLinkHeightMod);
$(w).css({height: 'auto'}).height(e.scrollHeight + 2);
$(w).closest('.post-body__cell').removeClass('scroll');
if (this.state.preview) {
$(ReactDOM.findDOMNode(this.refs.preview)).css({height: 'auto', 'overflow-y': 'auto'}).height(e.scrollHeight - mod);