mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Cannot recalc scrollHeight before resetting it
- Fixed Ross' fuck-up. You can thank me later
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user