PDA

View Full Version : help:this.cm has no properties,when resize the layout!



heaven
14 Oct 2007, 7:00 PM
when i resize the layout ,the error will be display.and it make the scroller do not appear,

I use the extjs from 0.33 to 1.11 ,the error is still there.

the error from firebug console:

this.cm has no properties
layout(undefined, undefined)ext-all-debug.js;... (行 28418)
autoSize()ext-all-debug.js;... (行 26919)
setSize(627, 283)ext-all-debug.js;... (行 26430)
updateBody(627, 283)ext-all-debug.js;... (行 25291)
updateBox(Object x=0 y=35 width=629 height=313)ext-all-debug.js;... (行 25251)
layout()ext-all-debug.js;... (行 24776)
onWindowResize()ext-all-debug.js;... (行 24672)
fire()ext-all-debug.js;... (行 1363)
(匿名)()ext-all-debug.js;... (行 1599)
Event(resize )yui-utilities.js;... (行 11)
[Break on this error] var hasLock = this.cm.isLocked(0);

and the code is,


ImportDataList.init('center1');
layout.add('center', new Ext.GridPanel(ImportDataList.getGrid(), {title: '未导入', closable: true}));

heaven
14 Oct 2007, 7:04 PM
http://extjs.com/forum/attachment.php?attachmentid=2109&stc=1&d=1192417464

tryanDLS
15 Oct 2007, 9:17 AM
Posting 2 lines of code is not likely to provide enough information for anyone to help you. Please post a small sample that can be used to illustrate your problem.