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