Remove message textarea resize handle; fix resizing after submit

This commit is contained in:
adambar 2015-06-17 23:06:19 +02:00
parent 07ac0ae9cc
commit da1abd75bf
4 changed files with 7 additions and 4 deletions

View file

@ -172,7 +172,8 @@
convo.sendMessage(message, attachments);
});
input.val("");
window.autosize(input);
window.autosize.update(input);
this.updateMessageFieldSize(e);
this.fileInput.deleteFiles();
}
},
@ -198,6 +199,7 @@
if (keyCode === 13) {
// enter pressed - submit the form now
event.preventDefault();
return this.$('.bottom-bar form').submit();
}
@ -209,7 +211,6 @@
window.autosize($messageField);
$bottomBar.outerHeight($messageField.outerHeight() + 1);
var $bottomBarNewHeight = $bottomBar.outerHeight();
$discussionContainer.outerHeight($discussionContainerPrevHeight - ($bottomBarNewHeight - $bottomBarPrevHeight));
}

View file

@ -376,6 +376,7 @@
border: 0;
outline: 0;
z-index: 5;
resize: none;
}
}

View file

@ -702,7 +702,8 @@ input.search {
padding: 10px;
border: 0;
outline: 0;
z-index: 5; }
z-index: 5;
resize: none; }
.toast {
position: absolute;

File diff suppressed because one or more lines are too long