mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -2637,7 +2637,16 @@ alfresco.xforms.VGroup = alfresco.xforms.AbstractGroup.extend({
|
|||||||
}
|
}
|
||||||
contentDiv.widget = child;
|
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);
|
this._childAdded(child);
|
||||||
return child.domContainer;
|
return child.domContainer;
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user