diff --git a/frontend/institution/managementMembersController.js b/frontend/institution/managementMembersController.js
index 6ce77c3f0..61acb5173 100644
--- a/frontend/institution/managementMembersController.js
+++ b/frontend/institution/managementMembersController.js
@@ -244,10 +244,6 @@
return isValid;
};
- manageMemberCtrl.calculateHeight = function calculateHeight(list, itemHeight=4.5) {
- return Utils.calculateHeight(list, itemHeight);
- };
-
manageMemberCtrl.resendInvite = function resendInvite(inviteKey, event) {
var confirm = $mdDialog.confirm({ onComplete: designOptions });
confirm
diff --git a/frontend/invites/inviteInstitutionController.js b/frontend/invites/inviteInstitutionController.js
index ee96c609d..564b6da25 100644
--- a/frontend/invites/inviteInstitutionController.js
+++ b/frontend/invites/inviteInstitutionController.js
@@ -26,10 +26,6 @@
inviteInstCtrl[flagName] = !inviteInstCtrl[flagName];
};
- inviteInstCtrl.calculateHeight = function calculateHeight(list, itemHeight) {
- return Utils.calculateHeight(list, itemHeight);
- };
-
inviteInstCtrl.cancelInvite = function cancelInvite() {
inviteInstCtrl.invite = {};
};
diff --git a/frontend/invites/invite_institution.html b/frontend/invites/invite_institution.html
index 32b6c3ad0..327cd1406 100644
--- a/frontend/invites/invite_institution.html
+++ b/frontend/invites/invite_institution.html
@@ -51,7 +51,7 @@
+ style="overflow: auto; max-height: 235px;" class="custom-scrollbar">
+ style="overflow: auto; max-height: 240px;" class="custom-scrollbar">
+ style="overflow: auto; max-height: 235px;" class="custom-scrollbar">
http://www.google.com");
});
});
-
- describe('calculateHeight()', function() {
- it('should set the height to 20em', function() {
- var requests = ['req01', 'req02', 'req03', 'req05', 'req06'];
- var calculatedHeigh = Utils.calculateHeight(requests);
- var expectedHeight = {height: '20em'};
- expect(calculatedHeigh).toEqual(expectedHeight);
- });
-
- it('should set height to less than 20em', function() {
- var requests = ['req01', 'req02', 'req03'];
- var calculatedHeigh = Utils.calculateHeight(requests);
- var expectedHeight = {height: '15em'};
- expect(calculatedHeigh).toEqual(expectedHeight);
- });
-
- it('should set height to 30em', function() {
- var requests = ['req01', 'req02', 'req03', 'req05', 'req06'];
- var calculatedHeigh = Utils.calculateHeight(requests, 10, 3);
- var expectedHeight = {height: '30em'};
- expect(calculatedHeigh).toEqual(expectedHeight);
- });
- });
}));
diff --git a/frontend/utils/utils.js b/frontend/utils/utils.js
index 2fdae927a..c860ebcfd 100644
--- a/frontend/utils/utils.js
+++ b/frontend/utils/utils.js
@@ -60,21 +60,6 @@ var Utils = {
generateLink : function generateLink(url){
return window.location.host + url;
},
-
- /**
- * Create an object with a calculated property height, to be used with
- * the directive ng-style on a html element that has a list of itens in it.
- * @param {array} list=[] A list of itens.
- * @param {number} itemHeight=5 The css estimated height of one item.
- * @param {number} maxItensNumber=4 The max number of itens to be shown in the element per scroll.
- * @returns {object} The object with the property height.
- */
- calculateHeight : function calculateHeight(list=[], itemHeight=5, maxItensNumber=4) {
- var maxHeight = itemHeight * maxItensNumber + 'em';
- var actualHeight = list.length * itemHeight + 'em';
- var calculedHeight = list.length < maxItensNumber ? actualHeight : maxHeight;
- return {height: calculedHeight};
- },
setScrollListener: function setScrollListener(content, callback) {
var alreadyRequested = false;
diff --git a/support/auth/utils.js b/support/auth/utils.js
index 8a4e9e041..5e0fb05d1 100644
--- a/support/auth/utils.js
+++ b/support/auth/utils.js
@@ -56,21 +56,6 @@ var Utils = {
return string && string.length > limit ?
string.substring(0, limit+1) + "..." : string;
},
-
- /**
- * Create an object with a calculated property height, to be used with
- * the directive ng-style on a html element that has a list of itens in it.
- * @param {array} list=[] A list of itens.
- * @param {number} itemHeight=5 The css estimated height of one item.
- * @param {number} maxItensNumber=4 The max number of itens to be shown in the element per scroll.
- * @returns {object} The object with the property height.
- */
- calculateHeight : function calculateHeight(list=[], itemHeight=5, maxItensNumber=4) {
- var maxHeight = itemHeight * maxItensNumber + 'em';
- var actualHeight = list.length * itemHeight + 'em';
- var calculedHeight = list.length < maxItensNumber ? actualHeight : maxHeight;
- return {height: calculedHeight};
- },
setScrollListener: function setScrollListener(content, callback) {
var alreadyRequested = false;