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 - Extra white pixels when displaying a collapsed fold in a guarded region
Summary: Extra white pixels when displaying a collapsed fold in a guarded region
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@editor
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2007-12-05 15:55 UTC by kevin_mitchell
Modified: 2008-02-20 14:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot illustrating the problem (2.07 KB, image/gif)
2007-12-05 15:59 UTC, kevin_mitchell
Details

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