PDA

View Full Version : [CLOSED][3.1] Resizing is not always as good as 3.0.3



meroy
23 Dec 2009, 11:48 PM
Apply this small change:



diff -ru svn.ext-5819/src/widgets/Container.js svn.ext-5819-d/src/widgets/Container.js
--- svn.ext-5819/src/widgets/Container.js 2009-12-22 03:42:34.000000000 -0500
+++ svn.ext-5819-d/src/widgets/Container.js 2009-12-24 02:04:48.000000000 -0500
@@ -496,7 +496,7 @@
}

if(this.monitorResize === true){
- Ext.EventManager.onWindowResize(this.doLayout, this, [false]);
+ Ext.EventManager.onWindowResize(this.layout.layout, this.layout);
}
},

@@ -881,7 +881,7 @@
}
}
if(this.monitorResize){
- Ext.EventManager.removeResizeListener(this.doLayout, this);
+ Ext.EventManager.removeResizeListener(this.layout.layout, this.layout);
}
Ext.destroy(this.layout);
Ext.Container.superclass.beforeDestroy.call(this);


I will provide test case in next post.

meroy
23 Dec 2009, 11:53 PM
I tested the change above for:

Ext.Container.prototype.bufferResize = true;

Or:

Ext.Container.prototype.bufferResize = false;

And, it makes a difference for 3.1.

evant
24 Dec 2009, 12:01 AM
The layout/rendering process is being worked on at the moment.