Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 243269 - The bars of crosstab measure chart view are not in line with its row header when preview in PDF [1200] [1302]
Summary: The bars of crosstab measure chart view are not in line with its row header w...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.3.1   Edit
Assignee: Yulin Wang CLA
QA Contact:
URL:
Whiteboard: Autoed,G
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 03:49 EDT by Xiaodan Wang CLA
Modified: 2010-03-25 02:59 EDT (History)
4 users (show)

See Also:


Attachments
report design (55.83 KB, image/png)
2008-08-06 03:49 EDT, Xiaodan Wang CLA
no flags Details
the pdf file generated from the attached report design (15.64 KB, application/pdf)
2008-08-06 03:50 EDT, Xiaodan Wang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaodan Wang CLA 2008-08-06 03:49:44 EDT
Created attachment 109271 [details]
report design

Description:
The bars of crosstab measure chart view are not in line with its row header when preview in PDF.

Build number:
2.3.1.v20080804-0630

Steps to reproduce:
1. Preview the attached report design in PDF.

Expected result:
The bars are in line with its row header.

Actual result:
The bars are not in line with its row header.

Error log:
N/A
Comment 1 Xiaodan Wang CLA 2008-08-06 03:50:44 EDT
Created attachment 109272 [details]
the pdf file generated from the attached report design
Comment 2 Yulin Wang CLA 2008-08-07 02:40:13 EDT
Chart in xtab works correctly in HTML, but fails in PDF.
It seems something wrong in conversion.
Comment 3 Yu Chen CLA 2008-08-21 03:59:47 EDT
PDF has different table model from HTML.
Chart need to handle the two output formats separately.
Comment 4 Wei Yan CLA 2008-08-24 23:16:43 EDT
(In reply to comment #3)
> PDF has different table model from HTML.
> Chart need to handle the two output formats separately.
> 
PDF and HTML use the same model to compute the row height:

row-height = content-height + top-border-width/2 + bottom-border-width/2 + top-padding + bottom-padding


Comment 5 Yulin Wang CLA 2008-08-26 03:04:57 EDT
This issue is caused by cell size computation difference between IE and FF/PDF.
In IE, cell size doesn't include padding, but FF and PDF both include padding. To avoid this computation conflict, set 0 padding to cross tab cell in design time.
QA needs to re-generate chart in xtab to verify.
Comment 6 Xiaodan Wang CLA 2008-08-26 22:31:47 EDT
Verified in build (2.3.1.v20080827-0630), closed.