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

Summary: Scrolling does not use the line height
Product: editor Reporter: capey0
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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?