From 46998b122144c244099173a81a6b6e7def7411f3 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 10 Jan 2017 17:48:25 +0530 Subject: [PATCH] Rectangle resizing issue resolved --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 8501916..427df89 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -627,7 +627,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", width: (x - offsetX1), height: (y - offsetY1), - resizeFromCenter: true, + resizeFromCenter: false, dblclick: function () { @@ -703,6 +703,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", x: (offsetX1), y: (offsetY1), width: (x - offsetX1), height: (y - offsetY1), // Place a handle at each side and each corner + resizeFromCenter: false, handlePlacement: 'both', click: function (layer) { $rootScope.canvasLayerNameCollection = []; @@ -973,6 +974,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", x: $rootScope.offsetX1, y: $rootScope.offsetY1, width: ($rootScope.x - $rootScope.offsetX1), height: ($rootScope.y - $rootScope.offsetY1), + resizeFromCenter: false, add: function (layer) { $rootScope.TextAreaRectID = layer.name; @@ -1355,6 +1357,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", x: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].x, y: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].y, width: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].width, height: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].height, + resizeFromCenter: false, click: function (layer) { $rootScope.shapeTypeText = "textAreaRect"; @@ -1622,6 +1625,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", x: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].x, y: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].y, width: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].width, height: $rootScope.rectDimension[$rootScope.rectDimension.length - 1].height, + resizeFromCenter: false, click: function (layer) { $rootScope.shapeTypeText = "textAreaRect"; var layerNameSplit = layer.name; -- libgit2 0.21.4