Posted 8 January 2018, 6:33 am EST
Hey,
We have a custom treenode cell that worked well in v9 until it just started to blow up upgrading to v11.
Seems like the internal spreadjs code changed - where a property became a function.
Not sure how to fix it…
here is the code that blows up
TreeNodeCellType.prototype.processMouseDown = function (hitinfo) {
var level = hitinfo.sheet.rowRangeGroup.getLevel(hitinfo.row);
var hoffset = (level + 2) * this.iconSpace + hitinfo.cellRect.x;
if (hitinfo.x < hoffset - 3 && hitinfo.x > hoffset - 21) {
var collapsed = hitinfo.sheet.rowRangeGroup.isCollapsed(hitinfo.row + 1);
hitinfo.sheet.rowRangeGroup.setCollapsed(hitinfo.row, !collapsed);
hitinfo.sheet.invalidateLayout();
hitinfo.sheet.repaint();
}
};
the line with setCollapsed blows up with following error:
self.direction is not a function. Line 81255