Commit ba1513b206bd90746c7f1f13979f172252a150a2
Merge branch 'viewChnageSkintoneIssue' into Develop
Showing
1 changed file
with
6 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -6869,8 +6869,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
6869 | 6869 | $scope.layerNumber = 0; |
6870 | 6870 | |
6871 | 6871 | //remove existing body view |
6872 | - $scope.flushCanvas(); | |
6873 | - | |
6872 | + // $scope.flushCanvas(); | |
6873 | + var canDiv = document.getElementById('canvasDiv'); | |
6874 | + var canDivChildCount = canDiv.childElementCount; | |
6875 | + if (canDivChildCount > 0) { | |
6876 | + canDiv.innerHTML = ''; | |
6877 | + } | |
6874 | 6878 | |
6875 | 6879 | var selectedViewId = $scope.bodyViews[event.currentTarget.title]; |
6876 | 6880 | $rootScope.viewOrientationId = selectedViewId; | ... | ... |