Skip to content

Commit 3aaf2f6

Browse files
authored
fix(wordsInput): adjust #wordsInput position to be on the active word for chinese (@NadAlaba) (#6545)
fix part of #6447
1 parent b402c3a commit 3aaf2f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/ts/test/test-ui.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,11 @@ export async function updateWordsInputPosition(initial = false): Promise<void> {
467467
el.style.width = activeWord.offsetWidth + "px";
468468
}
469469

470-
if (initial && Config.tapeMode === "off") {
470+
if (
471+
initial &&
472+
!shouldUpdateWordsInputPosition() &&
473+
Config.tapeMode === "off"
474+
) {
471475
el.style.top = targetTop + letterHeight + activeWordMargin + 4 + "px";
472476
} else {
473477
el.style.top = targetTop + "px";

0 commit comments

Comments
 (0)