diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 2c98b65..0a0a338 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -473,12 +473,13 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", $("#shapeStyleDiv").css("background-color", $rootScope.shapestyleFillColor); $rootScope.shapestyleborderColor = $("#" + id).parent().css("border-top-color"); $("#shapeStyleDiv").parent().css("border-color", $rootScope.shapestyleborderColor); - $rootScope.shapestyleborderWidthSeparatingPixel = $("#" + id).parent().css("border-top-width"); - $("#shapeStyleDiv").parent().css("border-width", $rootScope.shapestyleborderWidthSeparatingPixel); - var pixelSeparation = $rootScope.shapestyleborderWidthSeparatingPixel; - var intPart = pixelSeparation.split("p"); + $rootScope.borderDimensions = $("#" + id).parent().css("border-top-width"); + $("#shapeStyleDiv").parent().css("border-width", $rootScope.borderDimensions); - $rootScope.shapestyleborderWidth = intPart[0]; + var borderDimensions = $rootScope.borderDimensions; + var borderDimensionSplitArray = borderDimensions.split("p"); + + $rootScope.shapestyleborderWidth = borderDimensionSplitArray[0]; $rootScope.shapestyleborderStyles = "solid";