Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312382

Summary: Set height in img tag will affect width
Product: z_Archived Reporter: Liwen Chen <lchen>
Component: BIRTAssignee: JingwenShen <jingwen.shen>
Status: CLOSED FIXED QA Contact: Liwen Chen <lchen>
Severity: normal    
Priority: P3 CC: bluesoldier, jingwen.shen, wyan
Version: 2.6.0   
Target Milestone: 2.6.0 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard: Need-Auto
Attachments:
Description Flags
report none

Description Liwen Chen CLA 2010-05-11 04:47:13 EDT
Created attachment 167874 [details]
report

Build number:2.6.0.v20100511-0630

Steps to reproduce:
1. Copy a.jpg to project
2. New a report, insert a text item, html type, input "<img src="a.jpg" height="50"/>"
3. Preview in all formats

Expected result:
Height works but will not affect width

Actual result:
Only in doc, keep original width.
In other formats, image both width and height are changed.
Comment 1 Wei Yan CLA 2010-05-11 23:31:21 EDT
All output formats should be consistent with the browser's behavior.
Comment 2 JingwenShen CLA 2010-05-20 02:58:57 EDT
Fixed the problem.
Comment 3 Liwen Chen CLA 2010-05-21 01:42:22 EDT
All formats follow the browser effect, height and width both change.