When stepping through lines in the debugger, if a new file is
opened, the view area is set to just below the current line. Clearly,
that's not ideal, as it requires scrolling up to get to where you want
to look. It would be better to always center on the current line.
-- Eric
Logged In: YES
user_id=429731
We had some real difficulty with this over the summer, and I
think it is partially because of non-Swing threads trying to
update the position of the document.
In any event, it's not entirely consistent. Sometimes the
line will be centered perfectly, sometimes it will appear
near the top or bottom, and sometimes it will appear just
off screen. We should definitely try to re-evaulate this
part of the code (in DefinitionsPane) to find out why it has
such strange behavior.
Logged In: YES
user_id=557360
This feature has been implemented. It required adding a
setSize listener on the definitions pane because when a new
file is initially opened, its size is zero temporarily. By
calling centerViewOnOffset after setSize has been called on
the current definition pane, it seems to work consistently now.
James
Logged In: YES
user_id=557360
After more extensive testing, the fix is not very
consistent. Occasionally, the screen will contain just the
very top of the document. This is bad enough to go back to
the way it was before where the highlighted line would
appear at the top of the screen.
James