diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 7d1eb52..3aa113c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -528,11 +528,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } angular.element(document).ready(function (e) { - // function setScrollBarPosition() { - // var CanvasDivWidthAftrMin = $("#canvasDiv").width() / 2; - // $("#canvasDiv").scrollLeft(CanvasDivWidthAftrMin); - //} - // $("#daImagePanel").resize(checkWidth); + $("#daImagePanel").resize(function () { + $("#canvasDiv").scrollLeft($rootScope.CanvasDivLeftPosition); + $("#canvasDiv").scrollTop($rootScope.CanvasDivTopPosition); + }); $(document).on("mouseover", "#termList option", function (e) { $('#termList option[selected="selected"]').attr("selected", false);