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.
Created attachment 130489 [details] Screenshot of incorrect scrolling in navigator 1. Follow this tutorial: http://wiki.netbeans.org/DocsSimpleHtml5AndCss to the point where it says: "In the browser, select the email line. The element is highlighted in the Navigator window and the CSS Styles window." If the tree in the navigator was scrolled away, it will be shifted, but not all the way to the selected element - see the attached screenshot. You can see that the selected element is at the very bottom, and a few pixels of the selection rectangle are visible, but most of the element is hidden behind the horizontal scrollbar.
I was able to reproduce the described behavior on Windows. It seems to be caused by some asynchronous addition of the horizontal scrollbar: the horizontal scrollbar is not shown before I select an element in the browser => the tree in the Navigator is scrolled correctly to show the selected element (i.e., the selected element is displayed as the last visible row of the tree) => almost immediately after this successful/correct scrolling a horizontal scrollbar is added; the scrollbar hides almost entirely the selected element. I am reassigning this issue to HTML Navigator (that is responsible for the mentioned tree) for evaluation. Of course, this may as well be a problem of the tree view itself.
Reported also by Geertjan as a highly visible usability problem. Reproducible on all platforms, not just Mac. We should put this in a 7.3 patch, hopefully we'll have the fix soon. Marking as a patch candidate.
Html navigator just uses BeanTreeView. I have no idea how to fix it from html.navigator module.
Does HTML navigator uses BeanTreeView correctly?
Marking incomplete as essential previous question was not answered.
Cc'ing Honza Becicka again. It would be good to make progress on this soon, as this is a highly visible usability issue, and a 7.3 patch candidate. Thanks.
Changeset: 1c6c07209f54 Author: Jan Becicka <jbecicka@netbeans.org> Date: 2013-03-04 07:40 Message:
(In reply to comment #4) > Does HTML navigator uses BeanTreeView correctly? Found one place, where repaint can be called outside of EQ, but I doubt, that it will fix the issue. I can reproduce it also in other components: 1. Open New Project Wizard 2. Select Samples Node: Scrollbar appears and "Samples" is not fully visible. See attached screenshot.
Created attachment 132131 [details] Screenshot ("Samples" nod not fully visible)
Integrated into 'main-golden', will be available in build *201303042300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1c6c07209f54 User: Jan Becicka <jbecicka@netbeans.org> Log: Issue #225184 - Selecting element in browser does not scroll it to the visible area of the navigator
deferring to NB 7.3 patch 2
Stando, Jarda says that you are in a better position to investigate this problem than he is. Could you please look into this? Thanks.
*** This bug has been marked as a duplicate of bug 219709 ***
Verifying that I am not able to reproduce in NetBeans 7.3 with patch 1 installed. Thanks!