From: Andy Allan Date: Sun, 27 Nov 2011 16:28:52 +0000 (+0000) Subject: Use form layouts on subpanels X-Git-Url: https://git.openstreetmap.org/potlatch2.git/commitdiff_plain/e612349635b32ac23fb9a7d75a50618309bb30a4 Use form layouts on subpanels --- diff --git a/net/systemeD/potlatch2/TagViewer.mxml b/net/systemeD/potlatch2/TagViewer.mxml index 5531064a..82143aa4 100644 --- a/net/systemeD/potlatch2/TagViewer.mxml +++ b/net/systemeD/potlatch2/TagViewer.mxml @@ -481,9 +481,14 @@ 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); }