0

我在 firefox 60.0.2 上dialog.show()的自定义dialog. 调试后,我发现异常是在ext-modern-all-debug.js 的第 85351 行产生的:属性在哪里,它在里面不可用。 value = computedStyle.getPropertyValue(name);nameopacitycomputedStyle

[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: debugger eval code :: <TOP_LEVEL> :: line 1" data: no]

对话框显示代码:

var thisObj = this;

        var wnd = Ext.create('myApp.view.desktop.something.CustomWindow',{

            onButtonSubmitClick: function(){
                thisObj.doSomething();
                this.close();
            }

        });

        wnd.show();

ExtJS 调试功能:

getCssStyleValue: function(name, value) {
    var testElement = this.getTestElement(),
        computedStyle = this.testElementComputedStyle,
        style = testElement.style;
    style.setProperty(name, value);
    if (Ext.browser.is.Firefox) {

        testElement.offsetHeight;
    }
    value = computedStyle.getPropertyValue(name);
    style.removeProperty(name);
    return value;
}

这个错误与这个Mozilla错误有关吗?

任何解决方法?

4

1 回答 1

0

我不知道确切原因,但动画会产生这个错误。在我将动画设置dialog为:

hideAnimation: null,
maximizeAnimation: null,
restoreAnimation: null,
showAnimation: null

一切正常。

我希望我的回答能帮助遇到同样问题的人。

于 2018-06-20T11:28:18.637 回答