diff --git a/cytoscape-fcose.js b/cytoscape-fcose.js index 88be0b7..b6a6673 100644 --- a/cytoscape-fcose.js +++ b/cytoscape-fcose.js @@ -604,15 +604,8 @@ var Layout = function () { } } components.forEach(function (component, index) { - if (options.tile) { - if (!(component.edges().length == 0 && toBeTiledNodes.length == 1)) { - options.eles = component; - coseResult.push(coseLayout(options, spectralResult[index])); - } - } else { - options.eles = component; - coseResult.push(coseLayout(options, spectralResult[index])); - } + options.eles = component; + coseResult.push(coseLayout(options, spectralResult[index])); }); } } else { diff --git a/src/fcose/index.js b/src/fcose/index.js index ab716d7..51c543c 100644 --- a/src/fcose/index.js +++ b/src/fcose/index.js @@ -198,16 +198,8 @@ class Layout { } } components.forEach(function(component, index){ - if(options.tile){ - if(!(component.edges().length == 0 && toBeTiledNodes.length == 1)){ - options.eles = component; - coseResult.push(coseLayout(options, spectralResult[index])); - } - } - else{ - options.eles = component; - coseResult.push(coseLayout(options, spectralResult[index])); - } + options.eles = component; + coseResult.push(coseLayout(options, spectralResult[index])); }); } }