PDA

View Full Version : Ext js 4.0.7 issue in window launching



praveen_pkc
30 Mar 2012, 6:01 AM
Hi
I migrated from Ext js 4.0.6 to 4.0.7 and i face issue in launching ext js window. Below is the code that we use to launch the window. Please see attachment for javascript error


var editWindow = Ext.create('Ext.window.Window', {
title : title,
width : 450,
height : 500,
layout : 'fit',
resizable : true,
overflowX : 'auto',
overflowY : 'auto',
modal : true,
loader : {
url : diskPoolEditUrl,
scripts : true,
autoLoad : true,
params : {
diskPoolName : dpName
}
},
buttons : [ {
text : updateLabel,
hidden : hideBtn,
renderTo : Ext.getBody(),
handler : function() {
self.updateDiskPool();
}
}, {
text : cancelLabel,
hidden : hideBtn,
renderTo : Ext.getBody(),
handler : function() {
editWindow.close();
}
} ],

});

editWindow.show();

mitchellsimoens
30 Mar 2012, 9:44 AM
Error happen when you close the window or reopen it?

praveen_pkc
1 Apr 2012, 2:02 AM
The problem occurs when i try to open a window.

parasharsh
5 Apr 2012, 5:08 AM
If we add buttons to window, the javscript breaks at
childMargins = child.margins; parallelMargins = childMargins[me.parallelBefore] + childMargins[me.parallelAfter];

the childMargins come undefined for buttons.
The error is thrown in calculateChildBoxes method.
If buttons are removed from the window, the window is shown properly