diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
index f4732b7..446effc 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -4924,10 +4924,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
$scope.isResized = true;
- if ($scope.isTBDrawnOnBodyRegion == false) {
- $scope.layerNumber = $scope.layerNumber + 1;
- }
-
if (tCanvasHeight != $scope.transparencyCanvasHeight || tCanvasWidth != $scope.transparencyCanvasWidth) {
@@ -4993,7 +4989,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
if (TBStartX <= bodyRegionRight && value.X <= TBRight && TBStartY <= bodyRegionBottom && value.Y <= TBBottom) {
-
+ if ($scope.isTBDrawnOnBodyRegion == false) {
+ $scope.layerNumber = $scope.layerNumber + 1;
+ }
$scope.loadTransparencyImage(value.bodyRegionId, value.Height, value.Width, value.X, value.Y, value.IsMirror, $scope.TransparencyBoxStartX, $scope.TransparencyEndX, $scope.TransparencyBoxStartY, $scope.TransparencyBoxEndY, $scope, false, false);
$scope.isTBDrawnOnBodyRegion = true;
}