From 3152a626662919324b42cc790d488b33ac8e2310 Mon Sep 17 00:00:00 2001 From: Mukul Date: Mon, 28 Nov 2016 12:47:50 +0530 Subject: [PATCH] Paint Brush Size issue Resolved --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 7 ++++--- 400-SOURCECODE/AIAHTML5.Web/index.html | 46 +++++++++++++++++++++++----------------------- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 6e51ddf..290a0bd 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -345,13 +345,14 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", $("#canvas").css("display", "block"); $rootScope.switchCanvasToPaintCanvas(); $rootScope.shapeType = "FreeStylePaint"; - var a = $("#amount-2").val(); - $rootScope.shapeSize = parseInt(a); + var btnBrushSizeValue = $("#btnBrushSize").val(); + $rootScope.shapeSize = parseInt(btnBrushSizeValue); + $("#annotationpaintbrushsize").attr("data-size", $rootScope.shapeSize); if ($rootScope.shapeSize == '') { $('#canvasPaint').sketch({ defaultSize: 1 }); } else { - $('#canvasPaint').sketch({ defaultSize: $rootScope.shapeSize }); + $('#canvasPaint').sketch(); } diff --git a/400-SOURCECODE/AIAHTML5.Web/index.html b/400-SOURCECODE/AIAHTML5.Web/index.html index 55e41d0..ba1c725 100644 --- a/400-SOURCECODE/AIAHTML5.Web/index.html +++ b/400-SOURCECODE/AIAHTML5.Web/index.html @@ -536,33 +536,33 @@
- -   -
-
- -
-
-
- + +   +
+
+
-
- +
+
+ +
+
+ +
-
-
+
-
-
-
-
-
+
+
+
+
+
-- libgit2 0.21.4