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 - Unexpected vertical gray bar displayed in FX CSS file
Summary: Unexpected vertical gray bar displayed in FX CSS file
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-29 10:27 UTC by Petr Somol
Modified: 2012-12-04 03:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
vertical gray bar on the left in FX CSS editor window (134.53 KB, image/png)
2012-11-29 10:27 UTC, Petr Somol
Details
project with the affected FX CSS file (54.74 KB, application/octet-stream)
2012-11-29 10:31 UTC, Petr Somol
Details
vertical gray bar with Show Diff Sidebar off (135.76 KB, image/png)
2012-11-29 11:02 UTC, Petr Somol
Details

Note You need to log in before you can comment on or make changes to this bug.
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.