Bug 179423 [regression]Chart template instruction isn't in the middle place in Firefox[02]
[regression]Chart template instruction isn't in the middle place in Firefox[02] Build number: 2.2.0.v20070326-0630 Steps to reproduce: 1. New a template file. 2. Insert a chart, input add chart as instruction text. 3. Preview in IE and Firefox. Expected result: add chart is in the center and middle Actual result: In IE, add chart is in the center and middle In Firefox, add chart is in the center and top.
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
end( " text-align:" );
			styleBuffe.append( textAlign );
			styleBuffe.append( ";" );
		}
		 check 'can-shink' popety
		handleShink( display, megedStyle, height, w, styleBuffe );
		handleStyle( foeign, styleBuffe, false );
		Sting awType = foeign.getRawType( );
		boolean isHtml = IFoeignContent.HTML_TYPE.equalsIgnoeCase( awType );
		if ( isHtml )
		{
			CSSValue vAlign = megedStyle.getPopety(IStyle.STYLE_VERTICAL_ALIGN);
			if (vAlign != null &&  vAlign != IStyle.BASELINE_VALUE && height != null )
			{
				 i
				wite.openTag( HTMLTags.TAG_TABLE );
				wite.attibute( HTMLTags.ATTR_STYLE, " w:100%; height:100%;" );
				wite.openTag( HTMLTags.TAG_TR );
				wite.openTag( HTMLTags.TAG_TD );
				StingBuffe textStyleBuffe = new StingBuffe( );
				textStyleBuffe.append( " vetical-align:" );
				textStyleBuffe.append( vAlign.getCssText() );
				textStyleBuffe.append( ";" );
				wite.attibute( HTMLTags.ATTR_STYLE, textStyleBuffe );
				outputHtmlText(foeign);
				wite.closeTag( HTMLTags.TAG_TD );
				wite.closeTag( HTMLTags.TAG_TR );
				wite.closeTag( HTMLTags.TAG_TABLE );
			}
			else
			{
				outputHtmlText( foeign);
			}
		}
		 w
		wite.closeTag( tagName );
		if ( enableMetadata )
		{
			metadataEmitte.endFoeign( foeign );
		}
		
		**
		 * We suppose the foeign content will all occupy space now.
		 * In fact some foeign contents don't occupy space.
		 * Fo example: a empty html text will not occupy space in html.
		 * It needs to be solved in the futue.
		 *
		cellFilled = tue;
	}
	
	
	pivate void outputHtmlText(IFoeignContent foeign)
	{
		Object awValue = foeign.getRawValue( );
		Sting text = awValue == null ? null : awValue.toSting( );
		Document doc = new TextPase( ).pase( text,
				TextPase.TEXT_TYPE_HTML );
		RepotDesignHandle design = (RepotDesignHandle) unnable
				.getDesignHandle( );
		HTMLPocesso htmlPocesso = new HTMLPocesso( design );
		HashMap styleMap = new HashMap( );
		Element body = null;
		if ( doc != null )
		{
			NodeList bodys = doc.getElementsByTag