Bug 226240 - DBCS3.4: Image is right-aligned in exported HTML file
Summary: DBCS3.4: Image is right-aligned in exported HTML file
Status: CLOSED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 trivial
Target Milestone: 2.1   Edit
Assignee: Lidija Grahek CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-04-09 04:13 EDT by michit CLA
Modified: 2008-09-18 13:00 EDT (History)
4 users (show)

See Also:
ahunter.eclipse: review+


Attachments
Exported HTML file (160 bytes, text/html)
2008-04-09 04:13 EDT, michit CLA
no flags Details
Contains proposed patch (1.26 KB, patch)
2008-06-02 15:31 EDT, Lidija Grahek CLA
ahunter.eclipse: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description michit CLA 2008-04-09 04:13:26 EDT
Created attachment 95340 [details]
Exported HTML file

Build ID: I20080330-1350

Steps To Reproduce:
[Description]
When trying to save Geoshape Diagram as image file (GIF, BMP, JPEG, JPG, PNG) with "Export to HTML" option, the image is right-aligned in exported HTML file

[Steps]
1. Create a Project.
2. Create a Geoshape Diagram under the project.
3. Add a Geometric Shape (ex. Oval) to the diagram.
4. Try to save the diagram as image file. Right-click the diagram surface and select "File" > "Save As Image File" from the context menu.
5. Specify the folder and file name. Select GIF in "Image Format" drop-down list and check "Export to HTML" check box. Click "OK" button.
6. GIF file and HTML file is generated. Open the HTML file from Text editor. You can see that the source specify right alignment for the image. (Please see the attachment)
    <table border="0" cellspacing="0" cellpadding="0" align="RIGHT">

More information:
[Environment]
OS - Windows XP Professional Version 2002 SP3, v.3264 (Japanese)
Java - JRE 1.6.0 IBM Windows 32 build pwi3260-20071123_01"

[Expected output]
Image should be left-aligned in exported HTML file.
Comment 1 Artem Tikhomirov CLA 2008-04-11 13:30:02 EDT
Reassigned to Runtime component.
Comment 2 Lidija Grahek CLA 2008-06-02 15:31:34 EDT
Created attachment 103185 [details]
Contains proposed patch

Note that in the most recent version image is in the center, rather than alligned to the right. I changed it to left allignment as requested, but not sure which is better.
Comment 3 Anthony Hunter CLA 2008-06-02 15:51:26 EDT
Committed to HEAD
Comment 4 michit CLA 2008-06-16 01:58:27 EDT
I've verified this fix in Integration build I20080614-1032. Now, The value of align is LEFT. Thank you for the fix.
Comment 5 Richard Gronback CLA 2008-08-13 13:09:59 EDT
[target cleanup] 2.1 RC was the original target milestone for this bug
Comment 6 Eclipse Webmaster CLA 2010-07-19 12:30:27 EDT
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug