alexrozanski / PXSourceList

Source List control for the Mac
Other
639 stars 77 forks source link

iconRect.y calculated from iconSize.width not iconSize.height #25

Closed Jon889 closed 11 years ago

Jon889 commented 11 years ago

On line 432 in PXSourceList.m: https://github.com/Perspx/PXSourceList/blob/master/PXSourceList/PXSourceList.m#L432

It should be NSMidY(cellFrame)-(iconSize.height/2.0f), not NSMidY(cellFrame)-(iconSize.width/2.0f),

It works at the moment because iconSize is square (16x16), but if you change the width of the icons then they are drawn above the row the correspond to.

alexrozanski commented 11 years ago

Good catch, thanks!