Bugs item #568593, was opened at 2002-06-13 11:53
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=438935&aid=568593&group_id=44253
Category: Definitions (source editor)
Group: Annoying
Status: Open
Resolution: None
Priority: 5
Submitted By: Christopher McGraw (cmcgraw)
Assigned to: Nobody/Anonymous (nobody)
Summary: Line-wrapping/Horiz. scrollbar
Initial Comment:
When loading a file, DrJava automatically wraps lines
that extend past the given width of the JTextPane (??)
on to the following line. DrJava is also able to
reevaluate its wrapping when the window is widened,
e.g. sufficiently widening the window may allow the
user to fit all of their previously line-wrapped text
on to a single line. However, when narrowing the
window, line wrap is not reevaluated, and a horizontal
scrollbar automatically appears.
Perhaps the line-wrapping should never occur in the
first place, and the horizontal scrollbar should be
employed instead. The importance of this possibility is
highlighted by the most recent release's ability to
accommodate custom sized fonts (which will more than
likely send lines of text WAY off the side of the
screen). Line-wrapping over several successive lines
would be ugly and impractical in this case,
underscoring the need for a horizontal bar right when
the file is loaded.
I must confess that I haven't inspected all of the
relevant code concerning this bug yet, but it seems to
me that it must occur because one panel is contained
within another, and the scrollbars of the containing
panel kick in only when the window is being narrowed
because it doesn't resize the contained panel. Of
course, none of that will matter in our implementation
using horiz. scrollbars, because I believe the
contained panel will simply have its own scrollbar from
the start, or it will be automatically resized to the
necessary dimensions at which point it would rely on
the containing panel's scrollbars
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=438935&aid=568593&group_id=44253
|