Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313459 - Problem with % when generating images in tables.
Summary: Problem with % when generating images in tables.
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.5.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.6.1   Edit
Assignee: Yu Chen CLA
QA Contact: Xiaodan Wang CLA
URL:
Whiteboard: Need-Auto
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 23:46 EDT by Anthony Hunter CLA
Modified: 2010-06-18 03:07 EDT (History)
2 users (show)

See Also:


Attachments
BIRT Project (12.76 KB, application/x-sdlc)
2010-05-18 23:47 EDT, Anthony Hunter CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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).