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 252898 - Scrolling does not use the line height
Summary: Scrolling does not use the line height
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Miloslav Metelka
Depends on:
Reported: 2015-06-09 16:57 UTC by capey0
Modified: 2015-07-21 08:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description capey0 2015-06-09 16:57:13 UTC
I am not sure whether this is a defect or an enhancement. I look at it as a defect. 

The problem is that when scrolling in the editor, the top edge of the top line should always line up with the top of the viewport. ie. do not show half a line at the top of the editor viewport. Scrolling with the wheel should scroll exact line height(s) and so should any movement of the scroll thumb (when dragging) and also the up and down scroll buttons.

At any point in time the font size (and hence line height) is a known quantity, so why not have scrolling work accordingly?