table: seperate check routine column width and item width
authorjihye424.kim <jihye424.kim@samsung.com>
Tue, 17 Nov 2015 02:21:09 +0000 (11:21 +0900)
committerjihye424.kim <jihye424.kim@samsung.com>
Tue, 17 Nov 2015 02:21:09 +0000 (11:21 +0900)
- if item width has been changed, need to resize table item

Change-Id: Ifae1231f33508b8df2e246222f2644533a2bd884
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
src/org/tizen/emulator/manager/ui/table/Table.java

index 1b0426e..ad91bfe 100644 (file)
@@ -1088,8 +1088,9 @@ public class Table extends TableScrolledComposite {
 
                if (tableColumn.getBounds().width != width) {
                        tableColumn.setBounds(0, 0, width, columnHeight);
-                       tableItem.setBounds(0, columnHeight, width, height - columnHeight);
-               } else if (tableItem.getBounds().height != height) {
+               }
+               if (tableItem.getBounds().height != height
+                               || tableColumn.getBounds().width != width) {
                        tableItem.setBounds(0, columnHeight, width, height - columnHeight);
                        for (TableItem item : items) {
                                if (item != null) {