From d3abc25b9bd9c7df266fba276becf817d55349ed Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 16 Nov 2016 13:18:08 +0530 Subject: [PATCH] left and right position was not getting by using .css in IE. so changed the way to get that. working in all browers. --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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); -- libgit2 0.21.4