Commit 2345f81976660db3230c2b931fba4231c207c532

Authored by Amrita Vishnoi
1 parent d349f2b8

a defect introduced in annotations due to that annotation text was showing in multiline

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -3646,12 +3646,12 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -3646,12 +3646,12 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
3646 3646
3647 $scope.createDynamicSpeechBubble = function (event, x, y, isAnnotationNotForTBox) { 3647 $scope.createDynamicSpeechBubble = function (event, x, y, isAnnotationNotForTBox) {
3648 if (isAnnotationNotForTBox == true) { 3648 if (isAnnotationNotForTBox == true) {
3649 - if ($scope.MultiLanguageAnnationArray > 1) { 3649 + if ($scope.MultiLanguageAnnationArray.length > 1) {
3650 $scope.longestAnnotation = $scope.MultiLanguageAnnationArray.reduce(function (firstAnnotation, seconAnnotation) { return firstAnnotation.length > seconAnnotation.length ? firstAnnotation : seconAnnotation; }); 3650 $scope.longestAnnotation = $scope.MultiLanguageAnnationArray.reduce(function (firstAnnotation, seconAnnotation) { return firstAnnotation.length > seconAnnotation.length ? firstAnnotation : seconAnnotation; });
3651 3651
3652 } 3652 }
3653 else { 3653 else {
3654 - $scope.longestAnnotation = $scope.MultiLanguageAnnationArray[0].length; 3654 + $scope.longestAnnotation = $scope.MultiLanguageAnnationArray[0];
3655 } 3655 }
3656 //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 3656 //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
3657 // we decide the size of speech bubble 3657 // we decide the size of speech bubble