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

Bug 351893

Summary: PDF output: Page Break Inside behaves as "Avoid", even though it's set to "Auto"
Product: z_Archived Reporter: Marcos <marcosp2019>
Component: BIRTAssignee: Birt-Report-inbox <Birt-Report-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: bluesoldier, hustlg, ronan.crowley, xuelan.li
Version: unspecified   
Target Milestone: 3.7.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Test case using the Classic Models sample DB
none
PDF output for the test case, showing the unwanted whitespace
none
revised none

Description Marcos CLA 2011-07-12 16:15:25 EDT
Build Identifier: 20110615-0604

The property "Page Break Inside" is behaving as "Avoid" by default, even though it's shown as "Auto" in the Eclipse Report Designer GUI. This causes a lot of unwanted whitespace in reports with nested tables. The problem has been detected with the PDF emitter, I haven't checked if other formats are affected as well. Setting all rows of all tables to "Avoid" and then back to "Auto" solves the problem (since the property is then explictly written to the XML file).

Reproducible: Always

Steps to Reproduce:
1. Create a report with multiple nested tables
2. Leave the page break settings as default ("Auto")
3. Run and export the results as PDF
Comment 1 Marcos CLA 2011-07-12 16:16:52 EDT
Created attachment 199529 [details]
Test case using the Classic Models sample DB
Comment 2 Marcos CLA 2011-07-12 16:17:37 EDT
Created attachment 199530 [details]
PDF output for the test case, showing the unwanted whitespace
Comment 3 Gang Liu CLA 2011-07-13 03:30:12 EDT
It's not a bug.
Table row is page-break-inside:avoid by default. If you want remove the whitespace in the first page, you should set page-break-inside: auto on this row.
Comment 4 Gang Liu CLA 2011-07-13 03:31:15 EDT
Created attachment 199544 [details]
revised
Comment 5 Xiaoying Gu CLA 2011-07-13 23:33:18 EDT
Set as invalid based on comment #3
Comment 6 Marcos CLA 2011-07-14 09:01:27 EDT
Sorry, I forgot to mention one thing: the problem happens when an old report file (from version 2.3.2) is opened in version 3.7. In this case, I guess that, since the XML properties don't exist in the report file, perhaps the GUI is showing "Auto" as a default, even though it doesn't behave like that in the output.
Comment 7 Gang Liu CLA 2011-07-14 23:13:56 EDT
"Auto" is a default value. If user want the table row split, he/she should set the property explicitly.
Comment 8 Gang Liu CLA 2011-10-09 01:44:17 EDT
For the pdf output, it's the expected result.
Table row is page-break-inside:avoid by default. If want to remove the
whitespace in the first page, user should set page-break-inside: auto on this
row explicitly.

There is another issue mentioned in submitter's comments:
"In this case, I guess that,
since the XML properties don't exist in the report file, perhaps the GUI is
showing "Auto" as a default, even though it doesn't behave like that in the
output."
User doesn't set page-break-inside: auto on table row in the groups, but GUI is
showing as "Auto" while the default value is "avoid".
Page-break-inside property can not be inherited, user set "auto" value on table
group, it seems this value is inherited from table group.
Reassign it to model team to check if page-break-inside is inheritable.
Comment 9 Xuelan Li CLA 2011-10-31 22:58:49 EDT
Fixed. For value issue of page-break-inside mentioned in comment8 is corrected now. If no value is set locally for row in table or table group, its value is shown as "avoid" rather than "auto".
Comment 10 Ronan Crowley CLA 2012-07-30 13:15:24 EDT
Are the details of the change made this Bug available anywhere?

Wondering what I'd need to do to patch this on to 3.7.1

Cheers