chore: add new lint rules

This commit is contained in:
Gusted 2024-10-23 08:10:18 +02:00
parent 1ec3e638a5
commit f63f02045e
No known key found for this signature in database
GPG key ID: FD821B732837125F
5 changed files with 8 additions and 5 deletions

View file

@ -155,7 +155,7 @@ export function autosize(textarea, {viewportMarginBottom = 0} = {}) {
const isBorderBox = computedStyle.boxSizing === 'border-box';
const borderAddOn = isBorderBox ? topBorderWidth + bottomBorderWidth : 0;
const adjustedViewportMarginBottom = bottom < viewportMarginBottom ? bottom : viewportMarginBottom;
const adjustedViewportMarginBottom = Math.min(bottom, viewportMarginBottom);
const curHeight = parseFloat(computedStyle.height);
const maxHeight = curHeight + bottom - adjustedViewportMarginBottom;