mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-11 06:31:51 +08:00
moved update words height before update active element
moved update caret position outside the words height function closes #4064
This commit is contained in:
parent
3e233d9bd9
commit
07ef4fe243
1 changed files with 2 additions and 3 deletions
|
|
@ -197,8 +197,9 @@ export function showWords(): void {
|
|||
|
||||
$("#words").html(wordsHTML);
|
||||
|
||||
updateActiveElement(undefined, true);
|
||||
updateWordsHeight(true);
|
||||
updateActiveElement(undefined, true);
|
||||
Caret.updatePosition();
|
||||
updateWordsInputPosition(true);
|
||||
}
|
||||
|
||||
|
|
@ -348,8 +349,6 @@ function updateWordsHeight(force = false): void {
|
|||
if (Config.mode === "zen") {
|
||||
$(<Element>document.querySelector(".word")).remove();
|
||||
}
|
||||
|
||||
Caret.updatePosition();
|
||||
}
|
||||
|
||||
export function addWord(word: string): void {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue