Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313459

Summary: Problem with % when generating images in tables.
Product: z_Archived Reporter: Anthony Hunter <ahunter.eclipse>
Component: BIRTAssignee: Yu Chen <yChen>
Status: VERIFIED FIXED QA Contact: Xiaodan Wang <xwang>
Severity: normal    
Priority: P3 CC: rlu, wyan
Version: 2.5.0   
Target Milestone: 2.6.1   
Hardware: PC   
OS: Linux   
Whiteboard: Need-Auto
Attachments:
Description Flags
BIRT Project none

Description Anthony Hunter CLA 2010-05-18 23:46:36 EDT
See the attached BirtProject, it has two reports. Each identical except for this difference:
The image width/height is set to a %age value (50%) in one (TestImage.rptdesign) and not-set in the other (TestImageWorking.rptdesign).

TestImage.rptdesign does not display the image in pdf, but works fine in html.
TestImageWorking.rptdesign shows the image in both pdf and html.

The %age setting seems to cause the problem in pdf format.
Comment 1 Anthony Hunter CLA 2010-05-18 23:47:00 EDT
Created attachment 169047 [details]
BIRT Project
Comment 2 Yu Chen CLA 2010-06-13 03:46:16 EDT
Fixed.

The percentage value on height can not be calculated if its parent container does not have a definite height. For this case, the percentage value for image height is ignored, and the image size is calculated by the specified width and its original width/height ratio.
Comment 3 Xiaodan Wang CLA 2010-06-18 03:07:35 EDT
The images in TestImage.rptdesign are shown when preview as PDF.

Verified in build (2.6.1.v20100617-0604).