Commit 435997b10ec8b4c26c56881d4c490b64ee401dec

Authored by Nikita Kulshreshtha
2 parents d0ebde2a 213c1e2b

Merge branch 'CanvasDivScrollPositionIssue' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -528,11 +528,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
528 528 }
529 529  
530 530 angular.element(document).ready(function (e) {
531   - // function setScrollBarPosition() {
532   - // var CanvasDivWidthAftrMin = $("#canvasDiv").width() / 2;
533   - // $("#canvasDiv").scrollLeft(CanvasDivWidthAftrMin);
534   - //}
535   - // $("#daImagePanel").resize(checkWidth);
  531 + $("#daImagePanel").resize(function () {
  532 + $("#canvasDiv").scrollLeft($rootScope.CanvasDivLeftPosition);
  533 + $("#canvasDiv").scrollTop($rootScope.CanvasDivTopPosition);
  534 + });
536 535  
537 536 $(document).on("mouseover", "#termList option", function (e) {
538 537 $('#termList option[selected="selected"]').attr("selected", false);
... ...