BUG Windows 11: "Stats" pie-chart rapidly changing shapes when hovering mouse on the "Suspended" button

When I try to view the stats of one of my decks, while the stats window is windowed and the pie-chart has the format “left-pie, right-buttons” (left side has the pie-chart, right side has the table and the buttons like “New”, “Young”, “Mature”), hovering my mouse on the “Suspended” button causes the pie-chart to rapidly change from “left-pie, right-buttons” format to “top-pie, bottom-buttons” format and repeats as long as my mouse cursor is hovering on the “Suspended” button.

It only happens to the “Suspended” button, and when I maximize the stats window the issue no longer persists.

Edit:
Anki Version: 25.02.7

It took me a minute to understand, but your description is actually spot-on!

The hover action on those legend items causes them to redraw slightly bigger, and “Suspended” is the longest label, so that redraw could be enough to cause that section to flip between side-by-side layout and vertical layout.

I haven’t been able to align it exactly to get it to flip, but this is the basic behavior, right?

I think if your window or zoom were just a touch bigger or smaller, you wouldn’t see that flipping happen. I don’t know if the devs can give enough of a buffer to keep that from happening, but maybe someone can take a look.

1 Like

I remember Luc having sent in a pr for this issue before, should have been fixed in recent versions

EDIT: Fix/Layout shift on Card Counts button hover by Luc-Mcgrady · Pull Request #3971 · ankitects/anki · GitHub

2 Likes

yes, that is the behaviour but it constantly starts changing formats when the cursor is on the suspended button. it might be because of the redraw, because it doesn’t seem to happen after the window size has been changed.

i’m a new user so i can’t send the video.

might be useful info: i also have a 1920x1080 resolution screen and the window’s size is default (didn’t resize it after opening the stats window)

Based on the behavior I’m seeing, that makes sense because it’s a self-sustaining cycle.

You’re hovering over Suspend → Suspend gets bigger → redraws in vertical layout → so you’re no longer hovering over Suspend → Suspend gets smaller → redraws in horizontal layout → now you’re hovering over Suspend again …

The fix was included in the July release, so you can upgrade to 25.07.2, if you want it to stop now. Or just ignore it until you decide to upgrade later.

1 Like

im already using that version.

Are you sure? They look unfortunately similar, because of how the calendar works.

This is the 2025 February release, patch #7.

This is the 2025 July release, patch #2.

sorry, i misread the version numbers.
i thought 25.02.7 was the newer version because it is the one i downloaded from anki’s website 2 days ago. i’ll install the newer version from github.

1 Like