Commit acd0e04001dc5d436e1de155f2f1b67998468b46
Merge branch 'RectangleResizingIssue' into Develop
Showing
1 changed file
with
5 additions
and
1 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -633,7 +633,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
633 | 633 | width: (x - offsetX1), |
634 | 634 | height: (y - offsetY1), |
635 | 635 | |
636 | - resizeFromCenter: true, | |
636 | + resizeFromCenter: false, | |
637 | 637 | |
638 | 638 | dblclick: function () { |
639 | 639 | |
... | ... | @@ -709,6 +709,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
709 | 709 | x: (offsetX1), y: (offsetY1), |
710 | 710 | width: (x - offsetX1), height: (y - offsetY1), |
711 | 711 | // Place a handle at each side and each corner |
712 | + resizeFromCenter: false, | |
712 | 713 | handlePlacement: 'both', |
713 | 714 | click: function (layer) { |
714 | 715 | $rootScope.canvasLayerNameCollection = []; |
... | ... | @@ -979,6 +980,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
979 | 980 | x: $rootScope.offsetX1, y: $rootScope.offsetY1, |
980 | 981 | width: ($rootScope.x - $rootScope.offsetX1), |
981 | 982 | height: ($rootScope.y - $rootScope.offsetY1), |
983 | + resizeFromCenter: false, | |
982 | 984 | add: function (layer) { |
983 | 985 | |
984 | 986 | $rootScope.TextAreaRectID = layer.name; |
... | ... | @@ -1361,6 +1363,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
1361 | 1363 | x: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].x, y: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].y, |
1362 | 1364 | width: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].width, |
1363 | 1365 | height: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].height, |
1366 | + resizeFromCenter: false, | |
1364 | 1367 | click: function (layer) { |
1365 | 1368 | $rootScope.shapeTypeText = "textAreaRect"; |
1366 | 1369 | |
... | ... | @@ -1628,6 +1631,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
1628 | 1631 | x: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].x, y: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].y, |
1629 | 1632 | width: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].width, |
1630 | 1633 | height: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].height, |
1634 | + resizeFromCenter: false, | |
1631 | 1635 | click: function (layer) { |
1632 | 1636 | $rootScope.shapeTypeText = "textAreaRect"; |
1633 | 1637 | var layerNameSplit = layer.name; | ... | ... |