This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Going to a method may leave all but sig line offscreen | ||
---|---|---|---|
Product: | platform | Reporter: | _ tboudreau <tboudreau> |
Component: | -- Other -- | Assignee: | Petr Nejedly <pnejedly> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | mmetelka, phrebejk |
Priority: | P3 | Keywords: | SIMPLEFIX |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ tboudreau
2006-10-26 00:27:39 UTC
The code in java/source ends up in Line.show anyway. I thnk that this issue shouled be solved there. If so this will work for any editor not only the Java editor, which is the desired state. The ideal algorithm would be to try to show the line in about 1rd of the editor window I think. This could probably be solved well enough without too much computation or complexity... Rectangle r = x.modelToView (charOffset); r.height += 40; //pick a reasonable integer, or *= by some factor - r should be one line's height anyway editor.scrollRectToVisible(r); Fixed as outlined by Tim: openide/text/src/org/openide/text/CloneableEditorSupport.java,v1.40 |