PDA

View Full Version : EXTJS 4.0.7 - Issue in Launcing window



parasharsh
8 Apr 2012, 8:48 PM
Hi
We are facing issue in launching ext js window using EXTJS 4.0.7. Below is the code that we use to launch the window. The code works fine with 4.0.6

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 : someUrl, scripts : true, autoLoad : true, }, buttons : [ { text : updateLabel, hidden : hideBtn, renderTo : Ext.getBody(), handler : function() { self.update(); } }, { text : cancelLabel, hidden : hideBtn, renderTo : Ext.getBody(), handler : function() { editWindow.close(); } } ], }); editWindow.show();

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

mankz
9 Apr 2012, 4:09 AM
I see a few extra commas that need cleaning. If that doesn't fix it please post a runnable test case.