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 222963

Summary: Unexpected vertical gray bar displayed in FX CSS file
Product: editor Reporter: Petr Somol <psomol>
Component: -- Other --Assignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal CC: sdedic
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: vertical gray bar on the left in FX CSS editor window
project with the affected FX CSS file
vertical gray bar with Show Diff Sidebar off

Description Petr Somol 2012-11-29 10:27:04 UTC
Created attachment 128566 [details]
vertical gray bar on the left in FX CSS editor window

I noticed that when opening lengthy FX CSS files in editor (in current dev build) there is a gray vertical bar displayed in the area that would normally be used for history tracking. The extent of the bar does not make sense, it goes from the top of the file up to a point somewhere in the middle, but this ending point has no logical significance in the file. This is a simple FX Application project, untracked by VCS. I am going to attach the project as well. Sorry if this is not VCS related, please reassign in such case.
Comment 1 Petr Somol 2012-11-29 10:31:19 UTC
Created attachment 128567 [details]
project with the affected FX CSS file

I should also note that the CSS file has been created as follows: I created a New File -> CSS where the default template creates a very short file only (cca 30 lines). Then I replaced the whole content through clipboard from elsewhere (select all, then paste).
Comment 2 Ondrej Vrabec 2012-11-29 10:53:05 UTC
Is it still there if you disable the diff sidebar? View -> Show Diff Sidebar
Comment 3 Petr Somol 2012-11-29 11:02:05 UTC
Created attachment 128569 [details]
vertical gray bar with Show Diff Sidebar off

with disabled Show Diff Sidebar the gray bar is still there, the only difference is that the text is shifted to the left closer to the bar
Comment 4 Tomas Stupka 2012-11-29 12:28:32 UTC
> with disabled Show Diff Sidebar the gray bar is still there, the only
> difference is that the text is shifted to the left closer to the bar
that's because the grey bar isn't the versioning diff sidebar 

also that was able to reproduce with an unversioned java file - just had to make it may hundred lines long 

editor, please evaluate
Comment 5 Svata Dedic 2012-11-29 13:57:35 UTC
It was the braces matching sidebar. I left the maximum size to the default (= 32k), so it was 'aligned' a the vertical center of the other sidebars, about 44kpx from the top :)
The gray area was not painted at all as it was not occupied by any Component
Comment 6 Svata Dedic 2012-11-29 13:59:07 UTC
Changeset: f574a3532c2c
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-11-29 14:59
Message:   Defined maximum size for the sidebar, so it is not moved down for long sources.
Comment 7 Quality Engineering 2012-12-04 03:20:03 UTC
Integrated into 'main-golden', will be available in build *201212040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f574a3532c2c
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #222963 - Unexpected vertical gray bar displayed in FX CSS file: fixed
Defined maximum size for the sidebar, so it is not moved down for long sources.