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.

Bug 214973

Summary: Anonymous object variables and Navigator window issue
Product: javascript Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: VERIFIED FIXED    
Severity: normal CC: marfous
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: sample file

Description Vladimir Riha 2012-06-29 09:43:26 UTC
Somewhere in my code I have following:

 this.addCriteria= function(key, value, type){ 
      this.criteria.push({
                schemaproperty: key, 
                value: value, 
                type: type
            });
};

The object being pushed to the array is displayed as Anonym$X in Navigator window. If I double click on it (in the Navigator) cursor in editor is correctly moved to the specified piece of code (this.addCriteria). However immediately after that function addCriteria is focused in Navigator window which (at least for me) causes lost of context and it is confusing. 

The "distance" between addCriteria and Anonym$ in Navigator is longer than visible part of Navigator so the window scrolls up/down and the original Anonym$ is "lost"


Would be great to either omit focusing the addCriteria or order items in Navigator better


Product Version: NetBeans IDE Dev (Build 2012-06-29_00-38-59 )
Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03
System: Linux version 3.0.0-21-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Martin Fousek 2012-09-24 06:38:32 UTC
Lado, is this issue still valid? Anonymous objects aren't displayed in the Navigator for a while and the this.addCriteria navigation works well to me. Please could you take a look on that once more and let us know if it's all right or if it requires still any change? Thanks a lot...
Comment 2 Vladimir Riha 2012-09-24 06:46:34 UTC
Created attachment 124782 [details]
sample file

I see, Anonyms are gone :) However the "refocusing" is still there. Try to open the attached file and and adjust height of Navigator window so you have a vertical scroll bar and Pes() and kocka are not visible at the same time in Navigator. No double click on kocka in Navigator and see that function Pes() is focused a moment after which causes Navigator to scroll up. I think it should stay on "kocka" since it is the place where cursor is.
Comment 3 Petr Pisl 2013-05-28 09:29:27 UTC
This is known issue. It's problem in CLS, need to be more investigated.
Comment 4 Petr Pisl 2015-02-04 20:30:22 UTC
I think this is already fixed.
Comment 5 Vladimir Riha 2015-02-05 07:56:14 UTC
Yes, the Navigator content is fine, but the refocusing is still there. I'll report it to CSL then.

Thanks
Comment 6 Vladimir Riha 2015-02-05 08:03:23 UTC
(In reply to Vladimir Riha from comment #5)
> Yes, the Navigator content is fine, but the refocusing is still there. I'll
> report it to CSL then.
> 
> Thanks

reported as issue 250226