+1 for scroll lock

Mitch

On 12/6/23 10:20, Ernie Rael wrote:
On 23/12/06 7:47 AM, Mitch Claborn wrote:
Editing a Java class. I'm creating a new version of a method in that class and want the old version in a separate window for reference. I clone the current window then float it and scroll to the old version of the method in the floated window and put that window on a different monitor.

When I make changes in the same file in the main NB window the floated window doesn't stay where it was, but scrolls to where I'm making edits in the main window.

Is that the expected behavior?

That's long standing (like forever) behavior, probably a swing issue. IIRC, the "cloned" window only scrolls when lines are added/removed earlier in the file than the position being displayed.

jVi fixed it (back in NB-6.x I think, or maybe even when jVi was only on JBuilder); posted an issue but NB wasn't interested in the fix. See FreezeViewport.java in the jVi sources.

-ernie


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to