[Title] Advanced Declaration View : Fix the width of GuibuilderDeclarationPage
authorJaeheung Kim <jaeheung.kim@samsung.com>
Mon, 1 Jul 2013 09:18:51 +0000 (18:18 +0900)
committerJaeheung Kim <jaeheung.kim@samsung.com>
Mon, 1 Jul 2013 09:18:51 +0000 (18:18 +0900)
[Desc.] Fix the width of GuilbuilderDeclarationPage tab-composite and comboviwer
        when resizing.
[Issue] REDMINE-9804
Change-Id: Ic5deb8ae2f69ef7f64f183a8e8c334a3e6cd4802

org.tizen.web.advanceddeclarationview/src/org/tizen/web/advanceddeclarationview/ui/GUIBuilderDeclarationPage.java

index 36f7a17..49ddb0c 100644 (file)
@@ -378,13 +378,13 @@ IMenuListener, IPropertyChangeListener {
                        tabLabels[i] = new Label(tabComposite, SWT.LEFT | SWT.BORDER);
                        switch (i) {
                                case MODE_HTML: 
-                                       tabLabels[i].setText("HTML");
+                                       tabLabels[i].setText(" HTML   ");
                                        break;
                                case MODE_CSS:
-                                       tabLabels[i].setText("CSS");
+                                       tabLabels[i].setText(" CSS");
                                        break;
                                case MODE_JS: 
-                                       tabLabels[i].setText("JS");
+                                       tabLabels[i].setText(" JS");
                                        break;
                                default:
                                        break;
@@ -892,7 +892,7 @@ IMenuListener, IPropertyChangeListener {
                        
                        formData = new FormData();              
                        formData.left = new FormAttachment(0, margin);
-                       formData.right = new FormAttachment(25, -2 * margin);
+                       formData.width = 250;
                        formData.top = new FormAttachment(0, margin);
                        fComboViewer.getControl().setLayoutData(formData);
                        
@@ -919,7 +919,7 @@ IMenuListener, IPropertyChangeListener {
                
                formData = new FormData();              
                formData.left = new FormAttachment(0, margin);
-               formData.right = new FormAttachment(8, 0);
+               formData.width = SWT.DEFAULT;
                formData.bottom = new FormAttachment(100, -margin);
                formData.top = new FormAttachment(topControl, margin);
                tabComposite.setLayoutData(formData);