Commit 2345f81976660db3230c2b931fba4231c207c532
1 parent
d349f2b8
a defect introduced in annotations due to that annotation text was showing in multiline
Showing
1 changed file
with
2 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -3646,12 +3646,12 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l |
3646 | 3646 | |
3647 | 3647 | $scope.createDynamicSpeechBubble = function (event, x, y, isAnnotationNotForTBox) { |
3648 | 3648 | if (isAnnotationNotForTBox == true) { |
3649 | - if ($scope.MultiLanguageAnnationArray > 1) { | |
3649 | + if ($scope.MultiLanguageAnnationArray.length > 1) { | |
3650 | 3650 | $scope.longestAnnotation = $scope.MultiLanguageAnnationArray.reduce(function (firstAnnotation, seconAnnotation) { return firstAnnotation.length > seconAnnotation.length ? firstAnnotation : seconAnnotation; }); |
3651 | 3651 | |
3652 | 3652 | } |
3653 | 3653 | else { |
3654 | - $scope.longestAnnotation = $scope.MultiLanguageAnnationArray[0].length; | |
3654 | + $scope.longestAnnotation = $scope.MultiLanguageAnnationArray[0]; | |
3655 | 3655 | } |
3656 | 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 | 3657 | // we decide the size of speech bubble | ... | ... |