JDK-4723910 : JEditorPane with html tables show improper left margins for some rows
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2002-07-31
  • Updated: 2003-03-18
  • Resolved: 2002-09-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other
1.4.1_03 03Fixed 1.4.2Fixed
Related Reports
Relates :  
Description
solaris-sparc/bin/java -version
java version "1.4.1-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b18)
Java HotSpot(TM) Client VM (build 1.4.1-rc-b18, mixed mode)

Here attached is a test case to reproduce the problem.
Run the TreeDemo testcase with following steps.
a. Select root "Books for Java Implementers" in the EditorPane
b. Select node "The Java Virtual Machine Specification"
c. You would see   "Modifying a DWDM Connection" page
d. Scroll the page down to see "Detach a Connection"
e. Notice that the Step-Task table alingment is improper 
   For 1, 2 and 3 the left indentation is  different and are not aligned
  in with same left margin.
 
If you play around with the other links and come back to this page
some times you see the correct alignment.
For verification , one can view the page (vm.html) in a browser and 
see the alingment difference.

I used terms alingment , left margin, and left indentation all meaning the same
  

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.1_03 mantis FIXED IN: 1.4.1_03 mantis INTEGRATED IN: 1.4.1_03 mantis mantis-b03
14-06-2004

SUGGESTED FIX the suggested fix is in attachment (webrev.tgz) The idea of the fix is to introduce adjustmentWeights for colums. Columns with smaller adjustmentWeight will be adjusted before others. Columns with width specified have WorstAdjustmentWeight. Columns with no widht specified have the best adjustmentWeight. ###@###.### 2002-09-13
13-09-2002

EVALUATION Here is a simple test case to reproduce the bug: -- <html> <body> <table width="100%" border="1"> <tr> <td width="38" valign="top">1.1</td> <td halign="left">1.2</td> </tr> </table> </body> </html> -- CSS.calculateTiledLayout(LayoutIterator iter, int targetSpan) In case calculated span for the row is smaller than target span the method adjusts every cell no matter that the width was specified. ###@###.### 2002-09-10
10-09-2002