Skip rendering when node is offscreen
parent
bfc9f24251
commit
9129ce6893
|
@ -6,7 +6,7 @@
|
||||||
* - dynamic loading of child nodes
|
* - dynamic loading of child nodes
|
||||||
*
|
*
|
||||||
* License: MPL 2.0+, (c) Vitaliy Filippov 2016+
|
* 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)
|
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);
|
var cells = this.grid.renderer(this, colidx, rowidx);
|
||||||
if (this.tr.length == 1)
|
if (this.tr.length == 1)
|
||||||
cells = [ cells ];
|
cells = [ cells ];
|
||||||
|
|
Loading…
Reference in New Issue