Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 展开树节点时无法重用折叠动画_Extjs - Fatal编程技术网

Extjs 展开树节点时无法重用折叠动画

Extjs 展开树节点时无法重用折叠动画,extjs,Extjs,ExtJS 6.2是Opentext xCP的一部分,它有一个带有动画展开/折叠的树视图组件。有时,扩展失败: TypeError: Cannot read property 'scrollHeight' of null at constructor.onExpand (ext-all-debug.js:247739) 如果在塌陷仍处于动画状态时快速展开,则会发生这种情况 我检查并看到了以下代码: Ext.define('Ext.tree.View', { ... onExpand: func

ExtJS 6.2是Opentext xCP的一部分,它有一个带有动画展开/折叠的树视图组件。有时,扩展失败:

TypeError: Cannot read property 'scrollHeight' of null
at constructor.onExpand (ext-all-debug.js:247739)
如果在塌陷仍处于动画状态时快速展开,则会发生这种情况

我检查并看到了以下代码:

Ext.define('Ext.tree.View', {
...
onExpand: function(parent) {
    ...
    animWrap = me.getAnimWrap(parent, false);
    ...
    animateEl = animWrap.animateEl;
    targetEl = animWrap.targetEl;
    animateEl.stopAnimation();
    ...
    animateEl.animate({
        ...
        to: {
            height: targetEl.dom.scrollHeight // Cannot read property 'scrollHeight' of null
        },
这是很自然的,因为
stopAnimation()
刚刚在
afteranimate
处理程序中销毁了先前由
onCollapse()添加的
animateEl

我检查了7.3,没有发现明显的修复方法。请帮助我理解它是如何工作的。此外,我也有麻烦,使动画中