|
|
@@ -2849,13 +2849,6 @@ from desktop.views import _ko
|
|
|
huePubSub.subscribeOnce('set.active.snippet.type', updateType);
|
|
|
huePubSub.publish('get.active.snippet.type');
|
|
|
|
|
|
- var autoResize = function (data, event) {
|
|
|
- var inputArea = event.target;
|
|
|
- inputArea.style.height = 'auto';
|
|
|
- inputArea.style.height = inputArea.scrollHeight + 'px';
|
|
|
- };
|
|
|
-
|
|
|
- autoResize();
|
|
|
}
|
|
|
|
|
|
ChatPanel.prototype.dispose = function () {
|
|
|
@@ -2886,6 +2879,12 @@ from desktop.views import _ko
|
|
|
|
|
|
};
|
|
|
|
|
|
+ ChatPanel.prototype.autoResize = function (data, event) {
|
|
|
+ let inputArea = event.target;
|
|
|
+ inputArea.style.height = 'auto';
|
|
|
+ inputArea.style.height = inputArea.scrollHeight + 'px';
|
|
|
+ };
|
|
|
+
|
|
|
ko.components.register('chat-panel', {
|
|
|
viewModel: ChatPanel,
|
|
|
template: { element: 'chat-panel-template' }
|