/***********************************************************************
 * Copyright (c) 2009 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
 ***********************************************************************/

package org.eclipse.birt.report.engine.nLayout.area.impl;

import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.report.engine.nLayout.area.IContainerArea;

public class HtmlRegionArea extends RegionArea implements IContainerArea
{
	public HtmlRegionArea( )
	{
		super( );
	}

	HtmlRegionArea( HtmlRegionArea area )
	{
		super( area );
	}
	
	public void close( ) throws BirtException
	{
		if ( specifiedHeight >= currentBP )
		{	
			finished = true;
		}
		else
		{
			finished = false;
		}
		setContentHeight( specifiedHeight );
		checkDisplayNone( );
	}
	
	public void update( AbstractArea area ) throws BirtException
	{
		int aHeight = area.getAllocatedHeight( );
		currentBP += aHeight;
		if ( currentIP + area.getAllocatedWidth( ) > maxAvaWidth )
		{
			setNeedClip( true );
		}
	}
	
	public boolean isFinished( )
	{
		return finished;
	}

}

@@ -1063,31 +1063,8 @@
  );%0A
-%09%09checkDisplayNone( );%0A
 %09%7D%0A%09

Fix T41937: NPE when render report with large line height and letter spacing styles in item