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 31787 - "80-column line" draw too early in org/netbeans/editor/DrawEngine
Summary: "80-column line" draw too early in org/netbeans/editor/DrawEngine
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-07 16:57 UTC by cahrens
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff (1.87 KB, patch)
2003-07-22 13:52 UTC, Jan Kovar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cahrens 2003-03-07 16:57:24 UTC
The text limit line is being drawn in initInfo.  This is 
before the layers are drawn, so if you have a layer that 
colors the whole line the text limit line won't appear 
over that layer.  This looks odd.

I moved the relevant code to graphicsSpecificUpdates 
because we aren't interested in printing the line.  It 
might be best to move it someplace else, but it should 
happen after all the layers are drawn.
Comment 1 Jan Kovar 2003-07-22 13:51:23 UTC
I think best is to draw it after all drawing is done, 
therefore I propose to put it at the end of draw method.

I think there is no difference between having it inside 
graphicsSpecificUpdates or at the end of draw method, 
however I slightly prefer the draw method.

Proposed diff below.
Comment 2 Jan Kovar 2003-07-22 13:52:18 UTC
Created attachment 11062 [details]
diff
Comment 3 Antonin Nebuzelsky 2003-11-04 14:43:35 UTC
Fixed in Nevada Patch 1 and in Arrow.
Comment 4 Martin Roskanin 2004-01-30 11:55:15 UTC
after merging code folding to trunk this problem disappeared.
Unfortunatelly, another arised - issue #38636
BTW, attached patch(diff) will probably cause that text limit line
will overwrite text, just as in issue #38636