Notification menu having sporadic issues

AI-generated summary

The thread discusses sporadic issues with the notification menu appearing on the full-screen width version of the interface. Yuun reported the bug, noting it occurs when a read PM notification is at the top and seems linked to resize events triggered by scrollbars. codinghorror suggested the scrollbar triggering a resize event is the cause, a theory supported by Mittineague who hypothesized that the “Log Out” link might be incorrectly excluded from the scrollable area calculation, causing layout shifts. eviltrout attempted to reproduce the issue on Mac and Windows but struggled to replicate it, noting potential differences in scrollbar styling. After Yuun updated to the latest Discourse version, the issue disappeared, leading Yuun to conclude the bug was likely fixed by the update. eviltrout agreed to close the ticket, suggesting it be reopened if the problem resurfaces.

Basically this, except much faster:

On latest version of Discourse, using Chrome. Only non-default plugin is Spoiler Alert.

Repro steps somewhat indeterminate - it seems to happen when I have a read PM notification, I’m not sure if there are other times when it happens. Only shows up with the full screen width version of the notification menu (not the “slide-in” version, I think is what it’s called).

Looks like scroll bar is triggering resize event. Not sure if this is enough for @eviltrout to reproduce.

Yeah, sorry for the sparse detail, I haven’t been able to get it to trigger much. It went away after getting further notifications (an @ and a reply), so far it’s 2 for 2 on needing a read PM notification at the top, as odd as that seems to me.

The gif is changing so fast it’s hard to tell, but I don’t think it is because of the type(s) of Notification, but

That’s my guess.

The only reason I can think of that might be responsible for the rapid scrollbar ↔ no scrollbar is that the “Log Out” isn’t being considered as part of the scrollable area when there is a scrollbar resulting in a “fits ↔ doesn’t fit” thing happening.

I really can’t get this to happen on a mac even though I am pretty sure I know what is happening code wise. I will try again on Windows soon and hopefully the different scrollbar shape will make it easier to reproduce and fix.

Update: I spent a while this morning testing various other browsers on windows and still can’t reproduce it :frowning:

Is this site running the latest version of Discourse? I did some tweaking to that menu and I am wondering if the tweak caused it, or if perhaps it fixed it as I can’t reproduce it.

1 « J'aime »

It was on latest, I’m a few commits behind now. I’ll see if I can get it to happen again today when I’m at latest again, will update when I have more info!

2 « J'aime »

I haven’t been able to reproduce this behavior since updating to latest, so… fixed, apparently?

:sunny:

1 « J'aime »

Great! I’ll close this for now. If it happens again we can revisit!

1 « J'aime »