[Title] Added TreeColumn#pack() in tree selection listener
authorkh5325.kim <kh5325.kim@samsung.com>
Fri, 14 Sep 2012 07:50:45 +0000 (16:50 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Fri, 14 Sep 2012 07:50:45 +0000 (16:50 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.common.connection/src/org/tizen/common/connection/ui/TizenRemoteFileDialog.java

index b098c87..e5a830d 100755 (executable)
@@ -160,6 +160,8 @@ public class TizenRemoteFileDialog {
                         path.setText(selectedDir.getFullPath());
                     }
                 }
+                for (TreeColumn column : pathTree.getColumns())
+                    column.pack();
             }
         });
     }
@@ -224,16 +226,14 @@ public class TizenRemoteFileDialog {
                     // table is getting smaller so make the columns 
                     // smaller first and then resize the table to
                     // match the client area width
-                    //nameColumn.setWidth(width);
-                    nameColumn.pack();
+                    nameColumn.setWidth(width);
                     pathTree.setSize(area.width, area.height);
                 } else {
                     // table is getting bigger so make the table 
                     // bigger first and then make the columns wider
                     // to match the client area width
                     pathTree.setSize(area.width, area.height);
-                    //nameColumn.setWidth(width);
-                    nameColumn.pack();
+                    nameColumn.setWidth(width);
                 }
             }
         });