for (int i = _topItem; i < items.length; i++) {\r
Item item = (Item) items[i];\r
\r
- // *** FIXME ***\r
- // Everything in this file should be redone with comments.\r
- // How the hell am I suppose to understand anything in here?\r
- \r
- // *** HACK ***\r
- // The drawing of the rectangle can be wrong on some system.\r
- // _itemHeight can be slightly smaller than the height space for the table (bound.height / items.length)\r
- // This would cause the rectangle to slowly "slide" and to no longer get aligned with their text.\r
- //\r
- // ...There is probably a reason WHY the height space is different in the first hand \r
- // but this code is a total mess, does not have any comments and is globally impossible to read/understand the way it is right now.\r
- //\r
- // For now, this little fix should do it... I hope.\r
- int newItemHeight = (bound.height / items.length);\r
- if ( (items.length > 12) && ( newItemHeight > _itemHeight ) ) {\r
- _itemHeight = newItemHeight;\r
- }\r
- \r
getNameRect(_rect0, bound, i, nameWidth);\r
if (_rect0.y >= bound.y + bound.height)\r
break;\r