refactor: move extracted function above eslint comment

This commit is contained in:
Aimekram 2022-10-19 22:17:32 +02:00
parent 8251b65399
commit 85e18c86d8

View file

@ -2,9 +2,7 @@ import './emby-textarea.scss';
import 'webcomponents.js/webcomponents-lite';
import '../emby-input/emby-input';
/* eslint-disable indent */
function calculateOffset(textarea) {
function calculateOffset(textarea) {
const style = window.getComputedStyle(textarea, null);
const props = ['paddingTop', 'paddingBottom'];
let offset = 0;
@ -13,8 +11,9 @@ import '../emby-input/emby-input';
offset += parseInt(style[props[i]]);
}
return offset;
}
}
/* eslint-disable indent */
function autoGrow(textarea, maxLines) {
const self = this;