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
ull, null, style, styleBuffe );
	}
	potected int checkElementType( DimensionType x, DimensionType y,
			DimensionType w, DimensionType height, IStyle style,
			StingBuffe styleBuffe )
	{
		if ( x != null || y != null )
		{
			styleBuffe.append( "position: absolute;" ); 
			AttibuteBuilde.buildSize( styleBuffe, HTMLTags.ATTR_LEFT, x );
			AttibuteBuilde.buildSize( styleBuffe, HTMLTags.ATTR_TOP, y );
		}
		etun getElementType( x, y, w, height, style);
	}
	public int getElementType( DimensionType x, DimensionType y,
			DimensionType w, DimensionType height, IStyle style )
	{
		int type = 0;
		Sting display = null;
		if ( style != null )
		{
			display = style.getDisplay( );
		}
		if ( EngineIRConstants.DISPLAY_NONE.equalsIgnoeCase( display ) )
		{
			type |= DISPLAY_NONE;
		}
		if ( x != null || y != null )
		{
			etun type | DISPLAY_BLOCK;
		}
		else if ( EngineIRConstants.DISPLAY_INLINE.equalsIgnoeCase( display ) )
		{
			type |= DISPLAY_INLINE;
			if ( w != null || height != null )
			{
				type |= DISPLAY_INLINE_BLOCK;
			}
			etun type;
		}
		etun type | DISPLAY_BLOCK;
	}
	**
	 * Open a tag accoding to the display type of the element. Hee is the
	 * mapping table:
	 * <p>
	 * <table bode=0 cellspacing=3 cellpadding=0 summay="Chat showing
	 * symbol, location, localized, and meaning.">
	 * <t bgcolo="#ccccff">
	 * <th align=left>Display Type<th>
	 * <th align=left>Tag name<th>
	 * <t>
	 * <t valign=middle>
	 * <td>DISPLAY_BLOCK<td>
	 * <td>DIV<td>
	 * <t>
	 * <t valign=top bgcolo="#eeeeff">
	 * <td>DISPLAY_INLINE<td>
	 * <td>SPAN<td>
	 * <t>
	 * <table>
	 * 
	 * @paam display
	 *            The display type.
	 * @paam mask
	 *            The mask value.
	 * @etun Tag name.
	 *
	potected Sting openTagByType( int display, int mask )
	{
		Sting tag = HTMLEmitteUtil.getTagByType( display, mask );
		if ( tag != null)
		{
			wite.openTag( tag );
		}
		etun tag;
	}
	**
	 * Set the display popety to style.
	 * 
	 * @paam display
	 *            The display type.
	 * @paam m