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 681431 - Expand attachment bar hides headers
Expand attachment bar hides headers
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.6.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[formatter] evolution[webkit]
Depends on:
Blocks:
 
 
Reported: 2012-08-08 08:31 UTC by Milan Crha
Modified: 2013-09-13 01:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix (1.29 KB, patch)
2012-08-28 15:00 UTC, Dan Vrátil
committed Details | Review

Description Milan Crha 2012-08-08 08:31:57 UTC
I just realized that expanding large attachment bar can hide top headers and doesn't show all attachments in an icon view.

Steps:
a) have a digest message, with about 20 messages
b) open it in a separate window (double-click)
c) see the top attachment bar shows something like:
   [+] 20 Attachments [Save all]
d) click the [+]

See how the attachment bar changed its height and how it hid the top headers. Changing window size to maximize made show top two headers, but still not all. This is reproducible with webkit 1.9.5 too.
Comment 1 Fabien Tassin 2012-08-25 11:26:53 UTC
This one is still there in master (3.5.90+), would be nice to fix before 3.6.

On a side note, I noted that when I see such message (many attachments) in the preview pane, with the attachments list folded (the list at the right of the Save All button), and move to another mail, I see that list completely unfolded for a second or two, before the new email is shown. It also happens with as few attachments as 1 or 2, very noticeable when they are big.
If nothing else, it's disturbing and quite ugly.
Comment 2 Dan Vrátil 2012-08-28 15:00:05 UTC
Created attachment 222639 [details] [review]
Fix

This patch fixes both issues mentioned in this bug.

The height of the attachment bar is now correctly detected by obtaining the value using gtk_widget_get_preferred_height_for_width() rather then gtk_widget_get_preferred_height().

The attachment bar was always completely expanded when switching emails because someone stupid (probably me) was calling gtk_widget_show_all() after displaying the 'Retrieving message...' message (during that time WebKitWebView still contains the GtkWidgets from previous message).
Comment 3 Milan Crha 2012-08-28 16:22:15 UTC
Seems to work fine here, please commit. Thanks.
Comment 4 Fabien Tassin 2012-08-28 17:26:38 UTC
Works for me too (both issues).

Yet, I noticed that when the attachment bar is unfolded, I can barely scroll.
With ~30 attachments, it takes seconds to scroll down, with evo and Xorg fighting for the CPU. It's much faster with the bar folded.
Comment 5 Dan Vrátil 2012-08-29 08:37:43 UTC
Comment on attachment 222639 [details] [review]
Fix


Committed to git master as 0d4a549

http://git.gnome.org/browse/evolution/commit/?id=0d4a549502104ffd25d129a9599e97f97582741f
Comment 6 Dan Vrátil 2012-08-29 08:41:40 UTC
Thanks for testing, I believe the problem with crappy performance when scrolling is because of in-effective relayouting and redrawing of the widget - the more complex the widget, the slower it is.

I believe that 30 attachments is not an usual use-case though so please open a new bug report for the performance issue and I'll try to deal with it later (let's say for 3.6.1 :-)
Comment 7 Milan Crha 2012-08-29 08:56:08 UTC
I'm afraid it's rather webkit issue, than evolution's.