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 123487

Summary: Extra white pixels when displaying a collapsed fold in a guarded region
Product: editor Reporter: kevin_mitchell <kevin_mitchell>
Component: Painting & PrintingAssignee: issues@editor <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot illustrating the problem

Description kevin_mitchell 2007-12-05 15:55:36 UTC
I have a document that starts with a guarded section, then has a small unguarded section, and then another guarded 
section.  I create a fold that starts in the first guarded section and ends in the second guarded section.  When I 
collapse the fold I get a box representing the fold, as expected.  The background surrounding the box is shaded, as 
the fold box is sitting inside a guarded region of the file.  However, the GUI displays a small white strip, 2 pixels 
wide, to the left of the box.  Ordinarily this wouldn't be noticeable in a non-guarded section, as the background 
would be white anyway.  But it's very noticable in the guarded section case and makes the display look messy.  Perhaps 
these pixels should be transparent so you get the spacing you want, but allow the background to show through?  Or 
maybe this white space wasn't intended to be there?  Just to be clear, I'm talking about pixels to the left of the 
box; I'm not suggesting the background pixels in the box itself should be transparent.
Comment 1 kevin_mitchell 2007-12-05 15:59:57 UTC
Created attachment 53903 [details]
Screenshot illustrating the problem
Comment 2 Jiri Prox 2007-12-06 08:27:28 UTC
Reproducible also on Linux, but I would classify it as a minor UI bug -> P4
Comment 3 Vitezslav Stejskal 2007-12-06 09:24:40 UTC
IMO CollapsedView.paint() needs fixing...
Comment 4 Vitezslav Stejskal 2008-02-20 14:32:24 UTC
Should look better now.

changeset 46f6b762d60e in main
details: http://hg.netbeans.org/main?cmd=changeset;node=46f6b762d60e