Hey. I have a div contenteditable with styles:
min-height:85px; height:auto Which means that this element with a content greater than 85px will increase in height. And since the content is absolutely dynamic and is formed in the process of working with the element, it is necessary to track the moment of increase of this div contenteditable. I tried the method: onresize - the event does not work. Next, I tried onkeyup to track enter. But in this case, I track the increase too late - after the text field has increased. If you use onkeydown, then you need to determine whether it will increase the text field after pressing enter? Therefore, the idea came to view the height of the content, but due to min-height, any height in js is given as 85px, and not in fact occupied space.