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 218381 - Patch for: Editor horizontal scrollbar doesn't go away when enabling line wrap
Summary: Patch for: Editor horizontal scrollbar doesn't go away when enabling line wrap
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.2
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2012-09-14 14:20 UTC by emi
Modified: 2016-07-07 07:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Redundant horizontal scrollbar on file with line wrap (11.17 KB, image/png)
2012-09-14 14:20 UTC, emi
Details
Resetting view children to fix the scrollbar (1.35 KB, patch)
2012-09-17 22:19 UTC, emi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description emi 2012-09-14 14:20:50 UTC
Created attachment 124378 [details]
Redundant horizontal scrollbar on file with line wrap

1. Make sure line wrap is off. Create a new text file
2. Type/paste a line long enough to see a horizontal scrollbar show up.
3. Go to options, Editor | Formatting and enable line wrap (set it to anywhere).
4. Notice how the text file has line wrap but also has the old horizontal scrollbar.

The horizontal scrollbar shouldn't be visible at all.

Note: If line wrap is enabled from the start and you type/paste that long line, the scrollbar doesn't show up, as expected. So the problem is with the view refresh after line wrap gets enabled.
Comment 1 emi 2012-09-17 22:19:09 UTC
Created attachment 124479 [details]
Resetting view children to fix the scrollbar

See a patch that fixes the problem on 7.2 (not the current branch).

The problem might be deeper though... please review.
Comment 2 Martin Balin 2016-07-07 07:26:21 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss