brianhill53703 / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

Unalligned scrollpane striping on different size rows #181

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Itunes table UI on a JTable
2. Set row height anything other then default or header height
3. Highlight a row

What is the expected output? What do you see instead?
    Row highlight and background stripe should align however with non-standard row height this is not the case (see. attached screenshot).  The scroll pane striping is rendered from the top of the scroll pane and not the top of the first row. Hence when rending with non default row size the highlight and also row/background do not align. 

What version of the product are you using? On what operating system?
    SVN Trunk, OS X 10.6, Java 1.6

Please provide any additional information below.

Normally this isn't a problem as the default header height is the same as row 
height. Have attached a non-optimal fix 
(com.explodingpixels.widgets.StripedViewportBorder.java) and a diff file. 
Simple fix is to simply add the header height to start with. The highlight is 
then off so need's to be adjusted to the previous row.

Original issue reported on code.google.com by john.wil...@gmail.com on 15 Sep 2011 at 4:14

Attachments:

GoogleCodeExporter commented 9 years ago
This has been fixed by me some time ago. Please verify.

Original comment by dlemmermann@gmail.com on 12 Jun 2012 at 7:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Tested and working perfect. Thanks

Original comment by john.wil...@gmail.com on 12 Jun 2012 at 9:53