Commit 46998b122144c244099173a81a6b6e7def7411f3

Authored by unknown
1 parent c105cbda

Rectangle resizing issue resolved

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -627,7 +627,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
627 627 width: (x - offsetX1),
628 628 height: (y - offsetY1),
629 629  
630   - resizeFromCenter: true,
  630 + resizeFromCenter: false,
631 631  
632 632 dblclick: function () {
633 633  
... ... @@ -703,6 +703,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
703 703 x: (offsetX1), y: (offsetY1),
704 704 width: (x - offsetX1), height: (y - offsetY1),
705 705 // Place a handle at each side and each corner
  706 + resizeFromCenter: false,
706 707 handlePlacement: 'both',
707 708 click: function (layer) {
708 709 $rootScope.canvasLayerNameCollection = [];
... ... @@ -973,6 +974,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
973 974 x: $rootScope.offsetX1, y: $rootScope.offsetY1,
974 975 width: ($rootScope.x - $rootScope.offsetX1),
975 976 height: ($rootScope.y - $rootScope.offsetY1),
  977 + resizeFromCenter: false,
976 978 add: function (layer) {
977 979  
978 980 $rootScope.TextAreaRectID = layer.name;
... ... @@ -1355,6 +1357,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
1355 1357 x: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].x, y: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].y,
1356 1358 width: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].width,
1357 1359 height: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].height,
  1360 + resizeFromCenter: false,
1358 1361 click: function (layer) {
1359 1362 $rootScope.shapeTypeText = "textAreaRect";
1360 1363  
... ... @@ -1622,6 +1625,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
1622 1625 x: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].x, y: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].y,
1623 1626 width: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].width,
1624 1627 height: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].height,
  1628 + resizeFromCenter: false,
1625 1629 click: function (layer) {
1626 1630 $rootScope.shapeTypeText = "textAreaRect";
1627 1631 var layerNameSplit = layer.name;
... ...