标题说明了这一点,当我设置属性showRowNumbers = false时,会出现成千上万个此类错误;当我注释掉它时,没有错误,但将显示带有行号和复选框的列(我要关闭此列)。

例如在HTML中:

<script src="https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js"></script><div id="fin-grid"></div>

然后在javascript中:

var hg = new fin.Hypergrid('#fin-grid',
{
    data: [ { foo : 0.0 , bar : 0.0 , bat : 0.0 } ],
});
// Uncommenting this causes thousands of errors
//hg.properties.showRowNumbers = false;


这是完整的错误/堆栈跟踪:

TypeError: Cannot read property 'visibleColumn' of undefined
    at Constructor.<anonymous> (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:21121:23)
    at Array.forEach (native)
    at Array.value (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:21510:48)
    at Constructor.paintCellsByColumnsAndRows (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.    js:21118:25)
    at Constructor.renderGrid (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:22206:38)
    at Constructor.paint (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:21927:18)
    at Canvas.paintNow (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:16190:28)
    at Canvas.tickPaint (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:16076:18)
    at Canvas.tickPainter (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:16094:18)
    at https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:16552:27


任何指针表示赞赏,谢谢。

最佳答案

Hypergrid的维护者之一!我们在github中的https://github.com/openfin/fin-hypergrid/issues/594中管理此票证。我们一定会尽快调查并更新您和该线程。感谢您的注意!

关于javascript - 设置showRowNumbers = false时Chrome中的Fin-hypergrid.js错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/44141233/

10-12 01:10