Commit d3abc25b9bd9c7df266fba276becf817d55349ed

Authored by Nikita Kulshreshtha
1 parent 7199b725

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
... ... @@ -2438,7 +2438,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
2438 2438 else if ((($rootScope.viewOrientationId == '6')) && ($scope.highlightedBR.length == 1)) {
2439 2439 $scope.doAligneCanvasWithTerm = true;
2440 2440 }
2441   - alert('$scope.doAligneCanvasWithTerm = ' + $scope.doAligneCanvasWithTerm)
2442 2441 if ($scope.doAligneCanvasWithTerm == true) {
2443 2442  
2444 2443 if ($rootScope.isListManagerSelected == true)
... ... @@ -7234,13 +7233,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
7234 7233  
7235 7234  
7236 7235 $scope.aligneCanvasWithTerm = function () {
7237   - alert('inside align')
7238 7236 console.log('aligneCanvasWithTerm')
  7237 + // debugger
  7238 +
7239 7239 var newX = parseInt($scope.scaleValue($scope.termCoordinate.x, $scope.zoomInOut, DA[0].ZOOM_TERM_DATA));
7240 7240 var newY = parseInt($scope.scaleValue($scope.termCoordinate.y, $scope.zoomInOut, DA[0].ZOOM_TERM_DATA));
7241   -
7242   - var canvasX = parseInt($('#canvasDiv').css('left'));
7243   - var canvasY = parseInt($('#canvasDiv').css('top'));
  7241 +
  7242 + var canvasX = parseInt(document.getElementById('canvasDiv').offsetLeft);
  7243 + var canvasY = parseInt(document.getElementById('canvasDiv').offsetTop);
7244 7244 var canvasHeight = $('#canvasDiv').height();
7245 7245 var canvasWidth = $('#canvasDiv').width();
7246 7246  
... ... @@ -7268,7 +7268,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
7268 7268 else {
7269 7269 newX = maxHScrollPos;
7270 7270 }
7271   - alert('newX= ' + newX + ',newY= ' + newY)
  7271 + //alert('newX= ' + newX + ',newY= ' + newY)
7272 7272 $('#canvasDiv').scrollLeft(newX);
7273 7273 $('#canvasDiv').scrollTop(newY);
7274 7274 $scope.isLoading = false;
... ... @@ -7608,7 +7608,7 @@ function OnZoom()
7608 7608 }
7609 7609  
7610 7610 function onListManagerTermSelection(event) {
7611   - alert('selected')
  7611 +
7612 7612 var scope = angular.element(document.getElementById("daView")).scope();
7613 7613 scope.$apply(function () {
7614 7614 scope.HighlightBodyOnListManagerSelection(event);
... ...