You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2020/05/16 05:21:55 UTC

[GitHub] [netbeans] sdedic commented on a change in pull request #2139: NETBEANS-2082: do not scroll to caret after fold collapse, if caret is s off-screen.

sdedic commented on a change in pull request #2139:
URL: https://github.com/apache/netbeans/pull/2139#discussion_r426120236



##########
File path: ide/editor.fold.nbui/src/org/netbeans/modules/editor/fold/ui/FoldViewFactory.java
##########
@@ -289,7 +290,9 @@ public void foldHierarchyChanged(FoldHierarchyEvent evt) {
                 ViewUtils.log(CHANGE_LOG, "CHANGE in FoldViewFactory: <" + // NOI18N
                         startOffset + "," + endOffset + ">\n"); // NOI18N
             }
-            comp.putClientProperty("editorcaret.updateRetainsVisibleOnce", Boolean.TRUE);
+            if (collapsedAdded) {

Review comment:
       Usually that's why the commit message references a JIRA issue; for more context. But will leave a short comment here. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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