设置showRowNumbers = false时,Chrome中的Fin-hypergrid.js出错

时间:2017-05-23 17:20:09

标签: javascript openfin

标题说,当我设置属性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

任何指示赞赏,谢谢。

1 个答案:

答案 0 :(得分:1)

Hypergrid的维护者之一!我们在github管理这张票:https://github.com/openfin/fin-hypergrid/issues/594。我们一定会尽快调查这个并更新你和这个帖子。谢谢你的抬头!