After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 641570 - Messages are sometimes guillotined.
Messages are sometimes guillotined.
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dan Winship
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-02-04 23:55 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2011-06-03 17:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test program (676 bytes, text/x-python)
2011-02-04 23:55 UTC, Jasper St. Pierre (not reading bugmail)
  Details
screenshot (137.32 KB, image/png)
2011-02-05 00:03 UTC, Jasper St. Pierre (not reading bugmail)
  Details
messageTray: Don't animate notifications if they've shrunk. (1.80 KB, patch)
2011-05-24 02:31 UTC, Jasper St. Pierre (not reading bugmail)
needs-work Details | Review
messageTray: Don't animate notifications if they've shrunk. (2.19 KB, patch)
2011-05-26 07:15 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
messageTray: Don't animate notifications if they've shrunk. (1.41 KB, patch)
2011-06-02 03:08 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-02-04 23:55:35 UTC
Created attachment 180139 [details]
test program

Messages are guillotined when updated from a longer summary to a shorter one when in the expanding animation.

Simple test program attached, try to hover over the notification when it prints "Hover", it's a bit tricky.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-02-05 00:03:12 UTC
Created attachment 180141 [details]
screenshot
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-05-24 02:31:10 UTC
Created attachment 188431 [details] [review]
messageTray: Don't animate notifications if they've shrunk.

The effect of the large gap breaks the illusion of the message attached to
the bottom of the screen.
Comment 3 Dan Winship 2011-05-24 15:04:58 UTC
Comment on attachment 188431 [details] [review]
messageTray: Don't animate notifications if they've shrunk.

>-        let expandedY = this.actor.height - this._notificationBin.height;
>+       let expandedY = this.actor.height - this._notificationBin.height;

you lost 1 space of indent across the entire patch

>+       // Don't animate the notification to its new position if it has shrunk:
>+       // there will be a very visible "gap" that breaks the illusion.

would it work to temporarily increase its height to fill in the gap, animate it down normally, and then set the height back? (The catch would be to make sure that the "reset the height" step happens even if there's another size change or whatever during the animation.)
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-05-26 07:15:32 UTC
Created attachment 188633 [details] [review]
messageTray: Don't animate notifications if they've shrunk.

The effect of the large gap breaks the illusion of the message attached to
the bottom of the screen.



For some reason, this doesn't work... as evidenced by the "." at the end of
the commit message :).

If we can't figure out why, it's probably better to just go with the simpler
solution.
Comment 5 Dan Winship 2011-05-26 14:27:55 UTC
yeah, we can go with the simpler one for now; if it annoys the designers they can file a bug :)

the indentation change *is* wrong though. _onNotificationExpanded currently is indented 8 spaces, and your patch drops it to 7.
Comment 6 Jasper St. Pierre (not reading bugmail) 2011-06-02 03:08:28 UTC
Created attachment 189055 [details] [review]
messageTray: Don't animate notifications if they've shrunk.

The effect of the large gap breaks the illusion of the message attached to
the bottom of the screen.



Is this good to commit?
Comment 7 Jasper St. Pierre (not reading bugmail) 2011-06-03 17:51:50 UTC
Attachment 188633 [details] pushed as 0ae1556 - messageTray: Don't animate notifications if they've shrunk.
Attachment 189055 [details] pushed as 0ae1556 - messageTray: Don't animate notifications if they've shrunk.