Skip rendering when node is offscreen

master
Vitaliy Filippov 2017-07-13 13:46:25 +03:00
parent bfc9f24251
commit 9129ce6893
1 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,7 @@
* - dynamic loading of child nodes
*
* License: MPL 2.0+, (c) Vitaliy Filippov 2016+
* Version: 2017-07-12
* Version: 2017-07-13
*/
/**
@ -1252,6 +1252,11 @@ TreeGridNode.prototype._renderCell = function(rowIndex, colIndex, cell, force)
TreeGridNode.prototype.render = function(colidx, rowidx, force, skipSync)
{
if (!this.tr)
{
// Node is not visible, skip rendering
return false;
}
var cells = this.grid.renderer(this, colidx, rowidx);
if (this.tr.length == 1)
cells = [ cells ];