Fix for IE freezing when the grid is used in a composite control
In AW 2.0 if you use the grid class as a template in a composite control - IE may freeze with 100% CPU. The following patch fixes this problem -
Add this code at the end of aw.js or replace similar fragment in /source/lib/browsers/common.js
AW.paint = function(element){
var obj = AW.object(element.id);
while (obj._parent){
obj = obj._parent;
}
if (obj && obj.raiseEvent && !obj.$paint) {
obj.lock();
obj.$paint = true;
obj.raiseEvent("paint");
}
window.setTimeout(function(){
element.style.removeExpression("visibility");
element.style.display = "none";
if (obj && obj.$paint) {
obj.$paint = false;
}
}, 0);
return "hidden";
};
Add this code at the end of aw.js or replace similar fragment in /source/lib/browsers/common.js
Alex (ActiveWidgets)
March 31,