Remove message textarea resize handle; fix resizing after submit
This commit is contained in:
parent
07ac0ae9cc
commit
da1abd75bf
4 changed files with 7 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -376,6 +376,7 @@
|
|||
border: 0;
|
||||
outline: 0;
|
||||
z-index: 5;
|
||||
resize: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue