Grow the composebox when we click on it.

The idea here being: if there's only one line, it discourages
me from writing a long message (and also makes me think that
enter will send).

(imported from commit 424d8d305d1965ce3199ce3227dac94b395945bc)
This commit is contained in:
Waseem Daher 2013-05-10 16:22:17 -04:00
parent 898a69f42a
commit e0f1949cb4
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,7 @@ exports.start = function (msg_type, opts) {
} else {
show('private', $("#" + (focus_area || 'private_message_recipient')));
}
$(".new_message_textarea").css("min-height", "3em");
if (opts.replying_to_message !== undefined) {
do_fade(opts.replying_to_message, msg_type);
@ -395,6 +396,7 @@ exports.hide = function () {
$('.message_comp').find('input, textarea, button').blur();
$('#stream-message').hide();
$('#private-message').hide();
$(".new_message_textarea").css("min-height", "");
notifications_bar.enable();
exports.unfade_messages(true);
};