Commit 435997b10ec8b4c26c56881d4c490b64ee401dec
Merge branch 'CanvasDivScrollPositionIssue' into Develop
Showing
1 changed file
with
4 additions
and
5 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -528,11 +528,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -528,11 +528,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
528 | } | 528 | } |
529 | 529 | ||
530 | angular.element(document).ready(function (e) { | 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 | $(document).on("mouseover", "#termList option", function (e) { | 536 | $(document).on("mouseover", "#termList option", function (e) { |
538 | $('#termList option[selected="selected"]').attr("selected", false); | 537 | $('#termList option[selected="selected"]').attr("selected", false); |