From 6436ddf23550375d4900b64ff44852878de48586 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 6 Dec 2016 12:23:13 +0530 Subject: [PATCH] DA > Screen gets scrolled towards right if we minimize and maximize the window --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index cf77512..c78619f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -528,8 +528,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } angular.element(document).ready(function () { - - }) + function checkWidth() { + var CanvasDivWidthAftrMin = $("#canvasDiv").width() / 2; + $("#canvasDiv").scrollLeft(CanvasDivWidthAftrMin); + } + $("#daImagePanel").resize(checkWidth); + }) $scope.loadSearchDataForBodyView = function () { -- libgit2 0.21.4