Use form layouts on subpanels
authorAndy Allan <andy@gravitystorm.co.uk>
Sun, 27 Nov 2011 16:28:52 +0000 (16:28 +0000)
committerAndy Allan <andy@gravitystorm.co.uk>
Sun, 27 Nov 2011 16:28:52 +0000 (16:28 +0000)
net/systemeD/potlatch2/TagViewer.mxml

index 5531064..82143aa 100644 (file)
                                        subpanel.styleName="subcategoryPanel";
                                        subpanel.title=subcategory;
                                        subpanels[category][subcategory]=subpanel;
+                                       var form:Form = new Form();
+                                       form.name = "form";
+                                       var layout:FormLayout = new FormLayout();
+                                       form.layout = layout;
+                                       subpanel.addChild(form);
                                        tabComponents[tab].push(subpanel);
                                }
-                               subpanel.addChild(catEditor);
+                               Form(subpanel.getChildByName("form")).addElement(UIComponent(catEditor));
                        } else {
                                tabComponents[tab].push(catEditor);
                        }