Reverting a hack to an old bug about cell alignment. Found a (somehow) better workaround
authorWilliam Bourque <william.bourque@polymtl.ca>
Fri, 9 Apr 2010 19:58:33 +0000 (19:58 +0000)
committerWilliam Bourque <william.bourque@polymtl.ca>
Fri, 9 Apr 2010 19:58:33 +0000 (19:58 +0000)
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/widgets/TmfTimeStatesCtrl.java

index 57bdaf06c3f3ec8e052411e73425cad1c2348cc7..931b2372ac3ebefee4d6392d35e674b55d21e7db 100644 (file)
@@ -872,24 +872,6 @@ public class TmfTimeStatesCtrl extends TraceCtrl implements FocusListener,
                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
This page took 0.029343 seconds and 5 git commands to generate.