Commit 6436ddf23550375d4900b64ff44852878de48586

Authored by unknown
1 parent 2746e965

DA > Screen gets scrolled towards right if we minimize and maximize the window

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -528,8 +528,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -528,8 +528,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
528 } 528 }
529 529
530 angular.element(document).ready(function () { 530 angular.element(document).ready(function () {
531 -  
532 - }) 531 + function checkWidth() {
  532 + var CanvasDivWidthAftrMin = $("#canvasDiv").width() / 2;
  533 + $("#canvasDiv").scrollLeft(CanvasDivWidthAftrMin);
  534 + }
  535 + $("#daImagePanel").resize(checkWidth);
  536 + })
533 537
534 538
535 $scope.loadSearchDataForBodyView = function () { 539 $scope.loadSearchDataForBodyView = function () {