Merged V2.1 to HEAD

8726: Improve XForm rendering time by no longer calling updateDisplay() as each child field is added to a form VGroup. Fixes WCM-629

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8766 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Glen Johnson
2008-04-14 16:53:07 +00:00
parent 08b2ed2359
commit 43c4e14560

View File

@@ -2637,7 +2637,16 @@ alfresco.xforms.VGroup = alfresco.xforms.AbstractGroup.extend({
}
contentDiv.widget = child;
this._updateDisplay(false);
// Glen.Johnson@alfresco.com - for each child added to a VGroup,
// the method call below (commented out) recalculates the layout and
// updates the display for each of its siblings (already displayed
// above it). This is extremely expensive in terms of processing time.
// Commenting out the method call below drastically improves form rendering
// time for forms containing lots of VGroup widgets.
// See JIRA issue WCM-629
//
// this._updateDisplay(false);
this._childAdded(child);
return child.domContainer;
},