You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
The scrollHeight property of an element is expected to be the height of the content of the element (text in the textarea) and the padding before and after the content (padding-top and padding-bottom of the textarea). The problem is that, in Firefox, padding heights are not included in the scrollHeight if no scrollbar is visible.
This calculated height is assigned to the element using the jQuery .css() method, by directly updating the CSS height property. Because of the border-box box-sizing method, the element is displayed as if the height included the border + padding + content.
This means that we're assigning the content height (from scrollHeight) as if it were the border + padding + content height (thus removing the border and padding height from the content height, making the element taller than intended).