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);
|
convo.sendMessage(message, attachments);
|
||||||
});
|
});
|
||||||
input.val("");
|
input.val("");
|
||||||
window.autosize(input);
|
window.autosize.update(input);
|
||||||
|
this.updateMessageFieldSize(e);
|
||||||
this.fileInput.deleteFiles();
|
this.fileInput.deleteFiles();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -198,6 +199,7 @@
|
||||||
|
|
||||||
if (keyCode === 13) {
|
if (keyCode === 13) {
|
||||||
// enter pressed - submit the form now
|
// enter pressed - submit the form now
|
||||||
|
event.preventDefault();
|
||||||
return this.$('.bottom-bar form').submit();
|
return this.$('.bottom-bar form').submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +211,6 @@
|
||||||
|
|
||||||
window.autosize($messageField);
|
window.autosize($messageField);
|
||||||
$bottomBar.outerHeight($messageField.outerHeight() + 1);
|
$bottomBar.outerHeight($messageField.outerHeight() + 1);
|
||||||
|
|
||||||
var $bottomBarNewHeight = $bottomBar.outerHeight();
|
var $bottomBarNewHeight = $bottomBar.outerHeight();
|
||||||
$discussionContainer.outerHeight($discussionContainerPrevHeight - ($bottomBarNewHeight - $bottomBarPrevHeight));
|
$discussionContainer.outerHeight($discussionContainerPrevHeight - ($bottomBarNewHeight - $bottomBarPrevHeight));
|
||||||
}
|
}
|
||||||
|
|
|
@ -376,6 +376,7 @@
|
||||||
border: 0;
|
border: 0;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
|
resize: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -702,7 +702,8 @@ input.search {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border: 0;
|
border: 0;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
z-index: 5; }
|
z-index: 5;
|
||||||
|
resize: none; }
|
||||||
|
|
||||||
.toast {
|
.toast {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue