(!) back side unexpectedly aligns to center without <hr> function enabled


2.

While using the Anki software, I’ve come across a problem involving the typing feature (Type). After I input data on the front side (Front, image 1) and hit Enter to switch to the back side (Back), the Back automatically centers itself in the middle of the screen (image 2), despite my not activating the “< hr >” function. I’ve thoroughly inspected the code lines in NoteType, yet found no abnormalities. I’m at a loss as to what could be causing this. How can I rectify this issue? This bug seems to be present in versions 2.1.55 and later, including the recent 2.1.64rc version. Other features seem to work fine, with the exception of the Type function. I’d appreciate any assistance. Thanks in advance!

2 Likes

I seems to be able to reproduce this strange behavior with the front side of the card alone.

It looks like if the input box loses focus (by clicking outside of the box or pressing Enter), the card will scroll down on its own.

I think it might be caused by this work around WebEngine/IME bug in Qt6.

Test Data

Front Template

{{type:Back}}

<br>

{{Front}}

Back Tempalate (it doesn’t seem to matter)

{{Front}}

<hr>

{{type:Back}}

Front

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

Back

sample
4 Likes

@loveankiloveanki @kelciour Thanks for the reports, I’ve pushed a fix.

5 Likes

I am eagerly anticipating the release of the latest version of Anki, which will address the two issues that I and Kelior have reported. These are the bugs that have been causing me to use versions 2.1.49 and 2.1.54 up until now. I sincerely appreciate the helpful, prompt, and professional assistance from the members of the Anki community team. Thank you very much. Sincerely, TMSS.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.