Bug 2214089 - The HTML attachment preview area is way too small to display anything
Summary: The HTML attachment preview area is way too small to display anything
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: evolution
Version: 38
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Milan Crha
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2218182 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-11 18:19 UTC by Andrea Santilli
Modified: 2023-06-28 12:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-16 05:51:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME evolution issues 2400 0 None opened HTML attachment viewport is tiny 2023-06-16 05:51:51 UTC

Description Andrea Santilli 2023-06-11 18:19:48 UTC
Evolution 3.48.3 is not showing HTML mail contents correctly when plain text is set as the default display mode. This bug is not present in version 3.48.0.
Precisely, the problem arises when you set the preferences to show html parts as attachments and to always show plain text. When you pick an email containing html parts, scroll all the way down and finally click the html content button to enlarge the html preview area: such area will be so small that it won't let you see anything. The width looks correct but the height doesn't, until you resize the Evolution window and force it the redraw the contents.

I guess ResizeObserver not working as expected, as this issue can be worked around by commenting out line 1358 in /usr/share/evolution/webkit/e-web-view.js (Evo.mailDisplayResizeObserver.observe(doc.body);)


Reproducible: Always

Steps to Reproduce:
1. enable "Show suppressed HTML parts as attachments" and set the "HTML Mode" to "Only ever show plain text" in the preferences (Preferences -> Mail Preferences -> HTML Messages).
2. pick any email with html contents and scroll all the way down, till you reach the "HTML document attachment" button, then click it to enlarge the HTML content preview.
3. the HTML area has such a very short height that won't let you see anything, until you resize Evolution's window.

Actual Results:  
The html preview area is too small to show anything

Expected Results:  
The html preview area should show the correct height.

Comment 1 Milan Crha 2023-06-12 05:50:48 UTC
Thanks for a bug report. I cannot reproduce it here. I picked two random HTML messages and when I expand the artificial HTML attachment its content is shown properly. This is with webkit2gtk4.1-2.40.1-1.fc37.x86_64 .

By the way, this does not sound like a Fedora specific bug. A more suitable place to file such report is upstream, at https://gitlab.gnome.org/GNOME/evolution/-/issues . I do not know whether you've an account there though. I can forward it there, if needed.

Comment 2 Milan Crha 2023-06-16 05:51:51 UTC
This appeared in the upstream bug tracker [1], thus I'm closing this in favor of it. Please see it for any further updates.

[1] https://gitlab.gnome.org/GNOME/evolution/-/issues/2400

Comment 3 Milan Crha 2023-06-28 12:26:18 UTC
*** Bug 2218182 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.