Bug 164074 Height property of label has no effect in PDF [0300]
Description: Height property of label has no effect in PDF Build number: 2.2.0.v20061110-0630 Step to reproduce: 1. inset a label in the report 2. set its Height properties 1in in property view 3. set a background color to the label 3. preview it in PDF and web viewer Actual result: Height property of label has no effect in PDF. Expected result: It can work.
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
ght:100%;" );
				writer.openTag( HTMLTags.TAG_TR );
				writer.openTag( HTMLTags.TAG_TD );
				StringBuffer textStyleBuffer = new StringBuffer( );
				textStyleBuffer.append( " vertical-align:" );
				textStyleBuffer.append( verticalAlign );
				textStyleBuffer.append( ";" );
				writer.attribute( HTMLTags.ATTR_STYLE, textStyleBuffer );
				outputHtmlText(foreign);
				writer.closeTag( HTMLTags.TAG_TD );
				writer.closeTag( HTMLTags.TAG_TR );
				writer.closeTag( HTMLTags.TAG_TABLE );
			}
			else
			{
				outputHtmlText( foreign);
			}
		}
		 w
		writer.closeTag( tagName );
		if ( enableMetadata )
		{
			metadataEmitter.endForeign( foreign );
		}
		
		**
		 * We suppose the foreign content will all occupy space now.
		 * In fact some foreign contents don't occupy space.
		 * For example: a empty html text will not occupy space in html.
		 * It needs to be solved in the future.
		 *
		cellFilled = true;
	}
	
	
	private void outputHtmlText(IForeignContent foreign)
	{
		Object rawValue = foreign.getRawValue( );
		String text = rawValue == null ? null : rawValue.toString( );
		Document doc = new TextParser( ).parse( text,
				TextParser.TEXT_TYPE_HTML );
		ReportDesignHandle design = (ReportDesignHandle) runnable
				.getDesignHandle( );
		HTMLProcessor htmlProcessor = new HTMLProcessor( design );
		HashMap styleMap = new HashMap( );
		Element body = null;
		if ( doc != null )
		{
			NodeList bodys = doc.getElementsByTagName( "body" );
			if ( bodys.getLength( ) > 0 )
			{
				body = (Element) bodys.item( 0 );
			}
		}
		if ( body != null )
		{
			htmlProcessor.execute( body, styleMap );
			processNodes( body, styleMap );
		}
	}
	**
	 * Visits the children nodes of the specific node
	 * 
	 * @param visitor
	 *            the ITextNodeVisitor instance
	 * @param ele
	 *            the specific node
	 *
	private void processNodes( Element ele, HashMap cssStyles )
	{
		for ( Node node = ele.getFirstChild( ); node != null; node = node
				.getNextSibling( ) )
		{
			 A
	