PDA

View Full Version : Tree panel broken after being added from a Window



gtsafas
12 Aug 2014, 6:25 AM
Hi,

I have a case where im creating a Window popup with a tree grid on it. I then have a function that moves this from the window and puts it in another panel. The tree works until I close the window. Then I start getting errors like below. The first error I got was with Ext.LoadMask.



I tried a quick monkey patch hoping it was just that but it yielded these following errors whenever I try to expand a node.





Ext.override(Ext.LoadMask, { setZIndex: function(index) { var me = this, owner = me.activeOwner;
if (owner.isDestroyed){ //owner exists but it is destroyed so there is no owner.el me.destroy(); } else if (owner) { // it seems silly to add 1 to have it subtracted in the call below, // but this allows the x-mask el to have the correct z-index (same as the component) // so instead of directly changing the zIndexStack just get the z-index of the owner comp index = parseInt(owner.el.getStyle('zIndex'), 10) + 1; }
me.getMaskEl().setStyle('zIndex', index - 1); return me.mixins.floating.setZIndex.apply(me, arguments); }});







Uncaught TypeError: Cannot read property 'style' of undefined ext-all-debug-w-comments.js:20422 (http://qz.bankofamerica.com:8181/js/ext-4.2.1/ext-all-debug-w-comments.js)


Uncaught TypeError: Cannot read property 'componentLayoutCounter' of undefined ext-all-debug-w-comments.js:58029 (http://qz.bankofamerica.com:8181/js/ext-4.2.1/ext-all-debug-w-comments.js)

Gary Schlosberg
14 Aug 2014, 3:31 PM
With which version of ExtJS are you seeing this issue? Do you have a test case which reproduces the issue?