Commit 213c1e2bfc79a0e533d659ed73e1209a294f3ff2

Authored by unknown
1 parent 61c754de

Scroll Position Defect

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);
... ...