Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Count form elements rather than tab children

  • Loading branch information...
commit 0f749e09587f219fbf10e7998d3efa31c12db2ad 1 parent 7a84f96
@systemed systemed authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 net/systemeD/potlatch2/TagViewer.mxml
View
16 net/systemeD/potlatch2/TagViewer.mxml
@@ -532,14 +532,14 @@
if (form.parent.width>0) form.maxWidth=form.parent.width;
}
- private function ensureEditorsPopulated(tab:VBox):void {
- var components:Array = tabComponents[tab];
- if ( components == null || tab == null || tab.numChildren >= components.length )
- return;
- for each (var component:DisplayObject in components ) {
- Form(tab.getChildByName("form")).addElement(UIComponent(component));
- }
- }
+ private function ensureEditorsPopulated(tab:VBox):void {
+ var components:Array = tabComponents[tab];
+ var form:Form=Form(tab.getChildByName("form"));
+ if ( components == null || tab == null || form.numElements >= components.length ) return;
+ for each (var component:DisplayObject in components ) {
+ form.addElement(UIComponent(component));
+ }
+ }
private function initEditorStackUIs():void {
editorStackTabNavigator = new TabNavigator();
Please sign in to comment.
Something went wrong with that request. Please try again.