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 225184 - Selecting element in browser does not scroll it to the visible area of the navigator
Summary: Selecting element in browser does not scroll it to the visible area of the na...
Status: VERIFIED DUPLICATE of bug 219709
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2013-01-22 14:20 UTC by Petr Jiricka
Modified: 2013-04-09 09:45 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of incorrect scrolling in navigator (27.48 KB, image/png)
2013-01-22 14:20 UTC, Petr Jiricka
Details
Screenshot ("Samples" nod not fully visible) (62.93 KB, image/png)
2013-03-04 06:53 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-01-22 14:20:45 UTC
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.
Comment 1 Jan Stola 2013-02-04 13:00:54 UTC
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.
Comment 2 Petr Jiricka 2013-02-07 12:53:30 UTC
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.
Comment 3 Jan Becicka 2013-02-08 16:34:15 UTC
Html navigator just uses BeanTreeView. I have no idea how to fix it from html.navigator module.
Comment 4 Jaroslav Tulach 2013-02-11 19:50:18 UTC
Does HTML navigator uses BeanTreeView correctly?
Comment 5 Jaroslav Tulach 2013-02-26 09:02:48 UTC
Marking incomplete as essential previous question was not answered.
Comment 6 Petr Jiricka 2013-03-03 15:16:29 UTC
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.
Comment 7 Jan Becicka 2013-03-04 06:46:45 UTC
Changeset: 1c6c07209f54
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2013-03-04 07:40
Message:
Comment 8 Jan Becicka 2013-03-04 06:51:51 UTC
(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.
Comment 9 Jan Becicka 2013-03-04 06:53:15 UTC
Created attachment 132131 [details]
Screenshot ("Samples" nod not fully visible)
Comment 10 Quality Engineering 2013-03-05 01:49:19 UTC
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
Comment 11 Marian Mirilovic 2013-03-11 10:18:11 UTC
deferring to NB 7.3 patch 2
Comment 12 Petr Jiricka 2013-03-20 12:00:59 UTC
Stando, Jarda says that you are in a better position to investigate this problem than he is. Could you please look into this? Thanks.
Comment 13 Stanislav Aubrecht 2013-04-05 14:41:02 UTC

*** This bug has been marked as a duplicate of bug 219709 ***
Comment 14 Petr Jiricka 2013-04-09 09:45:11 UTC
Verifying that I am not able to reproduce in NetBeans 7.3 with patch 1 installed. Thanks!