Bug 164563 Orphan doesn't take effect on some items[03]
Orphan doesn't take effect on some items. Buld number: 2.2.0.v20061113-0630 Steps to reproduce: 1.new a report and drag label to layout ,input some text 2.copy the label and paste in layout till there are only two lines remaining in PDF page 3.insert another label and input enough text to cover 4 lines 4.new a style and set widow to 0,orphan to 3 5.preview in PDF Expected result: Orphan will take effect and the last label will be displayed entirely in the second PDF page Actual result: One row of last label is displayed in first PDF page and other three rows are displayed in second PDF page.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTextBlockContainerLM.java
package org.eclipse.birt.report.engine.layout.pdf;
/***********************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Actuate Corporation - initial API and implementation
 ***********************************************************************/
import java.util.ArrayList;
import java.util.Iterator;
import java.util.logging.Level;
import org.eclipse.birt.report.engine.content.IContent;
import org.eclipse.birt.report.engine.content.IStyle;
import org.eclipse.birt.report.engine.executor.IReportItemExecutor;
import org.eclipse.birt.report.engine.layout.IBlockStackingLayoutManager;
import org.eclipse.birt.report.engine.layout.area.IArea;
import org.eclipse.birt.report.engine.layout.content.ItemExecutorWrapper;
import org.eclipse.birt.report.engine.layout.content.LineStackingExecutor;
public class PDFTextBlockContainerLM extends PDFBlockContainerLM