Bug 123395 - Absolutely positioned HTML is offset by header.
Summary: Absolutely positioned HTML is offset by header.
Status: RESOLVED DUPLICATE of bug 96557
Alias: None
Product: kmail
Classification: Applications
Component: GUI (show other bugs)
Version: 1.9
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-10 21:02 UTC by Joe Kepley
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Kepley 2006-03-10 21:02:45 UTC
Version:           1.9 (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8) 
OS:                Linux

When an HTML email contains absolutely-positioned elements (ie a DIV with CSS position:absolute;top:100px), the email header appears to be included in the height calculation. Because of this, elements don't line up properly. 

How to reproduce: 
Create an HTML email with some elements positioned absolutely in pixels from the top of the screen. The position of the body begins *after* the header, but absolutely positioned elements are positioned from the top of the window, which means that the calculation *includes* the header. 

Expected Behavior: 
All HTML elements (either absolutely or normally positioned) should use the same frame of reference. 

Example: 
Email with absolutely-positioned elements in Kmail: 
http://blendinteractive.com/kmailbug/kmail_html.png

The same email in Thunderbird: 
http://blendinteractive.com/kmailbug/kmail_html2.png

The same email in KMail using Brief headers. Notice that the offset is reduced, indicating that the elements are absolutely positioned from the top of the window rather than the top of the content.
http://blendinteractive.com/kmailbug/kmail_html3.png
Comment 1 Rex Dieter 2006-09-27 16:52:41 UTC

*** This bug has been marked as a duplicate of 96557 ***