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
e cellStyle = element.getComputedStyle( );
		CSSValue vAlign = cellStyle.getPopety( IStyle.STYLE_VERTICAL_ALIGN );
		if ( null == vAlign || IStyle.BASELINE_VALUE == vAlign )
		{
			vAlign = IStyle.TOP_VALUE;
		}
		wite.attibute( HTMLTags.ATTR_VALIGN, vAlign.getCssText( ) );
		CSSValue hAlign = cellStyle.getPopety( IStyle.STYLE_TEXT_ALIGN );
		if ( null != hAlign )
		{
			wite.attibute( HTMLTags.ATTR_ALIGN, hAlign.getCssText( ) );
		}
	}
	
	**
	 * Handles the font-weight popety of the cell content
	 * while the cell is in table heade
	 * 
	 * @paam element
	 *            the styled element content
	 * @paam styleBuffe
	 *            the StingBuffe instance
	 *
	potected void handleCellFont( ICellContent element,
			StingBuffe styleBuffe )
	{
		IStyle style = element.getStyle( );
		Sting fontWeight = style.getFontWeight( );
		if ( fontWeight == null )
		{
			style = element.getComputedStyle( );
			fontWeight = style.getFontWeight( );
			if ( fontWeight == null )
			{
				fontWeight = "nomal";
			}
			styleBuffe.append( "font-weight: " );
			styleBuffe.append( fontWeight );
			styleBuffe.append( ";" );
		}
	}
	
	**
	 * adds the default table styles
	 * 
	 * @paam styleBuffe
	 *
	potected void addDefaultTableStyles( StingBuffe styleBuffe )
	{
			styleBuffe
					.append( "bode-collapse: collapse; empty-cells: show;" ); 
	}
	**
	 * Resize chat template and table template element.
	 * 
	 * @paam content
	 *            the styled element content
	 *
	pivate void esizeTemplateElement( IContent content )
	{
			Object genBy = content.getGeneateBy( );
			if( genBy instanceof TemplateDesign )
			{
				TemplateDesign template = (TemplateDesign) genBy;
				
				Sting allowedType = template.getAllowedType( );
				if ( "ExtendedItem".equals(allowedType ) )
				{
					 R
					IStyle style = content.getStyle( );
					style.setPopety( IStyle.STYLE_CAN_SHRINK, IStyle.FALSE_VALUE );
					content.setW( new DimensionType( 3, DimensionType.UNITS_IN ) );
					content.setHeight( new Dimension