[Title] fixed bug related to removing the range page when the range tab has been...
authorhyeran74.kim <hyeran74.kim@samsung.com>
Mon, 10 Mar 2014 01:00:26 +0000 (10:00 +0900)
committerhyeran74.kim <hyeran74.kim@samsung.com>
Mon, 10 Mar 2014 01:15:41 +0000 (10:15 +0900)
[Desc.]
[Issue]

Change-Id: I2d1ed625b1c3e59dad99d77a57241fe880c9297b
Signed-off-by: hyeran74.kim <hyeran74.kim@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/DATabComposite.java

index bb16d2b..47ffa14 100644 (file)
@@ -419,18 +419,13 @@ public class DATabComposite extends DAView {
                        getButtons().remove(button);
                        buttonMap.remove(ID);
                } else {
-                       Display.getDefault().syncExec(new Runnable() {
-                               @Override
-                               public void run() {
-                                       getButtons().remove(button);
-                                       buttonMap.remove(ID);
-                                       button.setGradationColor(DAButton.STATE_DISABLE,
-                                                       ColorResources.TAB_NORMAL_COLOR_START,
-                                                       ColorResources.TAB_NORMAL_COLOR_END);
-                                       button.setButtonEnabled(false);
-                                       tabAnimation(button, false);
-                               }
-                       });
+                       getButtons().remove(button);
+                       buttonMap.remove(ID);
+                       button.setGradationColor(DAButton.STATE_DISABLE,
+                                       ColorResources.TAB_NORMAL_COLOR_START,
+                                       ColorResources.TAB_NORMAL_COLOR_END);
+                       button.setButtonEnabled(false);
+                       tabAnimation(button, false);
                }
        }
 
@@ -457,6 +452,8 @@ public class DATabComposite extends DAView {
                                                        } else {
                                                                data.width -= (tabWidth / 10);
                                                                tabComposite.layout();
+                                                               stackLayout.topControl = childrenMap.get(TimelinePage.ID);
+                                                               contentsComposite.layout();
                                                                if (data.width <= 0) {
                                                                        cancel();
                                                                }