Does not resize table if item numbers less than 12... better ui output
authorWilliam Bourque <william.bourque@polymtl.ca>
Wed, 17 Mar 2010 15:51:42 +0000 (15:51 +0000)
committerWilliam Bourque <william.bourque@polymtl.ca>
Wed, 17 Mar 2010 15:51:42 +0000 (15:51 +0000)
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/widgets/TmfTimeStatesCtrl.java

index afab6b829772ae8e83c4097f13749a8d52cdde6e..57bdaf06c3f3ec8e052411e73425cad1c2348cc7 100644 (file)
@@ -886,7 +886,7 @@ public class TmfTimeStatesCtrl extends TraceCtrl implements FocusListener,
                        //\r
                        // For now, this little fix should do it... I hope.\r
                        int newItemHeight = (bound.height / items.length);\r
-                       if ( newItemHeight > _itemHeight ) {\r
+                       if ( (items.length > 12) && ( newItemHeight > _itemHeight ) ) {\r
                                _itemHeight = newItemHeight;\r
                        }\r
                        \r
This page took 0.02549 seconds and 5 git commands to generate.