Commit 44a314731a831b1df458ccab43068ba1e543f3db
1 parent
114ceb05
this is solution for dragdivposition issue
Showing
1 changed file
with
4 additions
and
13 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -1229,10 +1229,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l |
1229 | 1229 | $scope.dragdivleft = 21; |
1230 | 1230 | $scope.dragdivtop = 0; |
1231 | 1231 | |
1232 | - $scope.dragdivposition = { | |
1233 | - "left": 21, | |
1234 | - "top": 0 | |
1235 | - }; | |
1232 | + | |
1236 | 1233 | } |
1237 | 1234 | else { |
1238 | 1235 | var dragdivw = 83; |
... | ... | @@ -1240,18 +1237,12 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l |
1240 | 1237 | $scope.dragdivleft = 0; |
1241 | 1238 | $scope.dragdivtop = 0; |
1242 | 1239 | |
1243 | - $scope.dragdivposition = { | |
1244 | - "left": 0, | |
1245 | - "top": 0 | |
1246 | - | |
1247 | - }; | |
1240 | + | |
1248 | 1241 | } |
1249 | 1242 | } |
1250 | 1243 | |
1251 | - $scope.dragdivposition = { | |
1252 | - "left": $scope.dragdivleft, | |
1253 | - "top": $scope.dragdivtop | |
1254 | - }; | |
1244 | + $(".dragdivposition").css("left" , $scope.dragdivleft); | |
1245 | + $(".dragdivposition").css("top", $scope.dragdivtop); | |
1255 | 1246 | |
1256 | 1247 | $('#draggable').css('width', dragdivw); |
1257 | 1248 | $('#draggable').css('height', dragdivh) | ... | ... |