Cannot recalc scrollHeight before resetting it

- Fixed Ross' fuck-up. You can thank me later
This commit is contained in:
Wolfsblvt 2024-08-05 07:53:24 +02:00
parent 64e716bb62
commit bc9eb080e5

View File

@ -498,9 +498,8 @@ export function restoreCaretPosition(element, position) {
}
export async function resetScrollHeight(element) {
let scrollHeight = $(element).prop('scrollHeight');
$(element).css('height', '0px');
$(element).css('height', scrollHeight + 3 + 'px');
$(element).css('height', $(element).prop('scrollHeight') + 3 + 'px');
}
/**