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