JDK-4331485 : Large images prevent text from wrapping correctly at edge of the viewer frame.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2000-04-18
  • Updated: 2001-05-17
  • Resolved: 2001-05-17
Related Reports
Duplicate :  
Description

Name: skT45625			Date: 04/18/2000


java version "1.2.2"
Classic VM (build JDK-1.2.2-001, native threads, symcjit)


Locate or create an html page with large images.  The images must be wider than
the width of the right pane in the help viewer, if not reduce the width of the
help viewer until the right pane is narrower than the image.  If the images are
wider than the current width of the help viewer a horizontal scrollbar is
created.  So far this is correct.  However, standard browser behavior as
evidenced in Netscape Communicator 4.61 and IE 5.0 indicates that the text
itself will wrap at the edge of the viewer frame.  The java help viewer appears
to be sizing the page and determining the word wrap boundary based on the width
of the largest object, in this case the images.
(Review ID: 103651) 

This problem is not just releated to images but to tables and preformatted text as well. The fix needs to be applied so that any object that goes beyond the size of the window doesn't unnecessarily wrap to the largest objects size. I've attached a sample file that displayes the problem in preformatted text.
======================================================================

Comments
WORK AROUND Name: skT45625 Date: 04/18/2000 The work around seems to be resizing the images to very small dimensions so that they fit within the default width of the right pane. This only works as long as the help viewer is not reduced in size. This is very inconvenient as it requires reducing the scale of many images to the point where they lose any meaningful detail. ======================================================================
24-08-2004