refactor: move extracted function above eslint comment
This commit is contained in:
parent
8251b65399
commit
85e18c86d8
1 changed files with 9 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue