Commit f367157d authored by JC Brand's avatar JC Brand

Try to work around a Chromium flexbox bug.

The .chat-content are doesn't resize when the textarea gets resized to
its original size once a message gets sent.
parent a7c658a2
...@@ -814,9 +814,17 @@ converse.plugins.add('converse-chatview', { ...@@ -814,9 +814,17 @@ converse.plugins.add('converse-chatview', {
*/ */
_converse.api.trigger('messageSend', message); _converse.api.trigger('messageSend', message);
} }
const el = this.content.parentElement;
el.style.display = 'none';
textarea.removeAttribute('disabled'); textarea.removeAttribute('disabled');
u.removeClass('disabled', textarea); u.removeClass('disabled', textarea);
textarea.focus(); textarea.focus();
// XXX: Chrome flex bug workaround. The .chat-content area
// doesn't resize when the textarea is resized to its original size.
el.style.display = '';
// Suppress events, otherwise superfluous CSN gets set // Suppress events, otherwise superfluous CSN gets set
// immediately after the message, causing rate-limiting issues. // immediately after the message, causing rate-limiting issues.
this.model.setChatState(_converse.ACTIVE, {'silent': true}); this.model.setChatState(_converse.ACTIVE, {'silent': true});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment