Commit bdc1e0e0640ac677f52388d99b046da7b961eed4

Authored by Nikita Kulshreshtha
1 parent 3b4ca746

removing everyting on view chnage

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -6937,8 +6937,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -6937,8 +6937,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
6937 $scope.layerNumber = 0; 6937 $scope.layerNumber = 0;
6938 6938
6939 //remove existing body view 6939 //remove existing body view
6940 - $scope.flushCanvas();  
6941 - 6940 + var canDiv = document.getElementById('canvasDiv');
  6941 + var canDivChildCount = canDiv.childElementCount;
  6942 + if (canDivChildCount > 0) {
  6943 + canDiv.innerHTML = '';
  6944 + }
6942 6945
6943 var selectedViewId = $scope.bodyViews[event.currentTarget.title]; 6946 var selectedViewId = $scope.bodyViews[event.currentTarget.title];
6944 $rootScope.viewOrientationId = selectedViewId; 6947 $rootScope.viewOrientationId = selectedViewId;