【问题标题】:Fin-hypergrid.js in Chrome errors when setting showRowNumbers = false设置 showRowNumbers = false 时 Chrome 中的 Fin-hypergrid.js 错误
【发布时间】:2017-05-23 17:20:09
【问题描述】:

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

感谢任何指点,谢谢。

【问题讨论】:

    标签: javascript openfin


    【解决方案1】:

    这里是 Hypergrid 的维护者之一!我们在 github 上管理这张票:https://github.com/openfin/fin-hypergrid/issues/594。我们一定会尽快调查并更新您和此线程。感谢您的提醒!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-08
      • 2020-01-10
      • 2013-02-14
      • 1970-01-01
      • 2019-12-14
      • 2011-01-24
      相关资源
      最近更新 更多