diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
index 70246a4..44bcbf6 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -2438,7 +2438,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
else if ((($rootScope.viewOrientationId == '6')) && ($scope.highlightedBR.length == 1)) {
$scope.doAligneCanvasWithTerm = true;
}
- alert('$scope.doAligneCanvasWithTerm = ' + $scope.doAligneCanvasWithTerm)
if ($scope.doAligneCanvasWithTerm == true) {
if ($rootScope.isListManagerSelected == true)
@@ -7234,13 +7233,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
$scope.aligneCanvasWithTerm = function () {
- alert('inside align')
console.log('aligneCanvasWithTerm')
+ // debugger
+
var newX = parseInt($scope.scaleValue($scope.termCoordinate.x, $scope.zoomInOut, DA[0].ZOOM_TERM_DATA));
var newY = parseInt($scope.scaleValue($scope.termCoordinate.y, $scope.zoomInOut, DA[0].ZOOM_TERM_DATA));
-
- var canvasX = parseInt($('#canvasDiv').css('left'));
- var canvasY = parseInt($('#canvasDiv').css('top'));
+
+ var canvasX = parseInt(document.getElementById('canvasDiv').offsetLeft);
+ var canvasY = parseInt(document.getElementById('canvasDiv').offsetTop);
var canvasHeight = $('#canvasDiv').height();
var canvasWidth = $('#canvasDiv').width();
@@ -7268,7 +7268,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
else {
newX = maxHScrollPos;
}
- alert('newX= ' + newX + ',newY= ' + newY)
+ //alert('newX= ' + newX + ',newY= ' + newY)
$('#canvasDiv').scrollLeft(newX);
$('#canvasDiv').scrollTop(newY);
$scope.isLoading = false;
@@ -7608,7 +7608,7 @@ function OnZoom()
}
function onListManagerTermSelection(event) {
- alert('selected')
+
var scope = angular.element(document.getElementById("daView")).scope();
scope.$apply(function () {
scope.HighlightBodyOnListManagerSelection(event);