From 2345f81976660db3230c2b931fba4231c207c532 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Wed, 4 Oct 2017 17:18:56 +0530 Subject: [PATCH] a defect introduced in annotations due to that annotation text was showing in multiline --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 8d393d0..53f69c9 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -3646,12 +3646,12 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $scope.createDynamicSpeechBubble = function (event, x, y, isAnnotationNotForTBox) { if (isAnnotationNotForTBox == true) { - if ($scope.MultiLanguageAnnationArray > 1) { + if ($scope.MultiLanguageAnnationArray.length > 1) { $scope.longestAnnotation = $scope.MultiLanguageAnnationArray.reduce(function (firstAnnotation, seconAnnotation) { return firstAnnotation.length > seconAnnotation.length ? firstAnnotation : seconAnnotation; }); } else { - $scope.longestAnnotation = $scope.MultiLanguageAnnationArray[0].length; + $scope.longestAnnotation = $scope.MultiLanguageAnnationArray[0]; } //1. In transparency box we shows two annotation at a time, so we need to decide the max length of annotation in btween two annotation because based on that // we decide the size of speech bubble -- libgit2 0.21.4