GNOME Bugzilla – Bug 688422
message tray gets shifted up in the overview after expanding a notification
Last modified: 2013-01-23 18:15:00 UTC
to reproduce: sleep 1; notify-send test "really looooooooooooooooooooooooooooooooooooooooooooooooooooong text" go to the overview move cursor onto the notification to expand it wait for the notification to disappear -> message tray has been shifted up by as much as the notification had to be shifted up to be fully expanded
Created attachment 229249 [details] [review] messageTray: don't accidentally shift the tray around in the overview The problem I think is that _showTray() gets called when the actor is still the notification rather than the tray resulting in the shift. But since I don't know the messageTray code well enough I'm not sure if the fix I have come up with is actually correct.
*** Bug 688530 has been marked as a duplicate of this bug. ***
Created attachment 229259 [details] [review] messageTray: don't accidentally shift the tray around in the overview After looking at the code a bit more it seems that the summary is fading in and the old patch waited for this fading to be completed before moving the tray up. So instead of waiting for the summary to be completely shown - just use its height rather than using the entire actor, which at this point seems to still contain the notification.
Created attachment 229262 [details] [review] messageTray: don't accidentally shift the tray around in the overview (v3) After applying the second patch I noticed that while the notification was still sliding out, the summary was already sliding in - which didn't happen in the first patch because it would wait for the summary to completely fade in before sliding it up. Also ignoring other stuff that might have been stuffed into the tray might not be a good idea. So this time just wait till the notification is completely hidden (not just hiding) and the actor should have the right height and the summary would only slide in after the notification is completely gone. No more overlapping animations and the summary is also fading in while it slides up as it was originally intended.
Review of attachment 229262 [details] [review]: Uhm, makes sense, I guess
*** Bug 691880 has been marked as a duplicate of this bug. ***
*** Bug 692406 has been marked as a duplicate of this bug. ***