From 654001b58a235fe80643335d64a1efa0dfde1a75 Mon Sep 17 00:00:00 2001 From: Mukul Date: Thu, 31 Aug 2017 10:48:27 +0530 Subject: [PATCH] this is solution for dragdivposition issue --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 19 +++---------------- 400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html | 2 +- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 062be34..803d4a8 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -1227,31 +1227,18 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l var dragdivw = 42 $scope.dragdivleft = 21; - $scope.dragdivtop = 0; - - $scope.dragdivposition = { - "left": 21, - "top": 0 - }; + $scope.dragdivtop = 0; } else { var dragdivw = 83; $scope.dragdivleft = 0; $scope.dragdivtop = 0; - - $scope.dragdivposition = { - "left": 0, - "top": 0 - - }; } } + $(".dragdivposition").css("left", $scope.dragdivleft); + $(".dragdivposition").css("top", $scope.dragdivtop); - $scope.dragdivposition = { - "left": $scope.dragdivleft, - "top": $scope.dragdivtop - }; $('#draggable').css('width', dragdivw); $('#draggable').css('height', dragdivh) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html index 8de0f42..4b3ffbd 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html @@ -292,7 +292,7 @@