From 10dfe909294d9350c345eb9b8bc51347d62ad73e Mon Sep 17 00:00:00 2001 From: nikita Date: Thu, 9 Feb 2017 11:14:20 +0530 Subject: [PATCH] removed flush canvas and added to remove all elements of canavsDIv on view change --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 84b7506..1fea5bd 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -6868,8 +6868,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.layerNumber = 0; //remove existing body view - $scope.flushCanvas(); - + // $scope.flushCanvas(); + var canDiv = document.getElementById('canvasDiv'); + var canDivChildCount = canDiv.childElementCount; + if (canDivChildCount > 0) { + canDiv.innerHTML = ''; + } var selectedViewId = $scope.bodyViews[event.currentTarget.title]; $rootScope.viewOrientationId = selectedViewId; -- libgit2 0.21.4