From 5dbb80d656eae8b10659c28f795786456b59df3c Mon Sep 17 00:00:00 2001 From: dabeng Date: Sun, 26 Jun 2016 23:50:00 +0800 Subject: [PATCH] clean up js file --- dist/js/jquery.orgchart.js | 2 +- examples/js/jquery.orgchart.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/js/jquery.orgchart.js b/dist/js/jquery.orgchart.js index a0d1162d..179ff676 100755 --- a/dist/js/jquery.orgchart.js +++ b/dist/js/jquery.orgchart.js @@ -119,7 +119,7 @@ 'height': flag ? sourceChart.clientWidth : sourceChart.clientHeight, 'onclone': function(cloneDoc) { $(cloneDoc).find('.canvasContainer').css('overflow', 'visible') - .find('.orgchart').css('transform', ''); + .find('.orgchart:visible:first').css('transform', ''); }, 'onrendered': function(canvas) { $chartContainer.find('.mask').addClass('hidden') diff --git a/examples/js/jquery.orgchart.js b/examples/js/jquery.orgchart.js index a0d1162d..179ff676 100755 --- a/examples/js/jquery.orgchart.js +++ b/examples/js/jquery.orgchart.js @@ -119,7 +119,7 @@ 'height': flag ? sourceChart.clientWidth : sourceChart.clientHeight, 'onclone': function(cloneDoc) { $(cloneDoc).find('.canvasContainer').css('overflow', 'visible') - .find('.orgchart').css('transform', ''); + .find('.orgchart:visible:first').css('transform', ''); }, 'onrendered': function(canvas) { $chartContainer.find('.mask').addClass('hidden')