1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

org user invites and confirmation

This commit is contained in:
Kyle Spearrin
2017-03-04 20:41:45 -05:00
parent b36799bf0c
commit a9e85f8765
9 changed files with 170 additions and 6 deletions

View File

@@ -22,6 +22,24 @@ angular
$(document).off('click', '.sidebar li a');
}
$('.table-responsive').on('shown.bs.dropdown', function (e) {
var t = $(this),
m = $(e.target).find('.dropdown-menu'),
tb = t.offset().top + t.height(),
mb = m.offset().top + m.outerHeight(true),
d = 20; // Space for shadow + scrollbar.
if (t[0].scrollWidth > t.innerWidth()) {
if (mb + d > tb) {
t.css('padding-bottom', ((mb + d) - tb));
}
}
else {
t.css('overflow', 'visible');
}
}).on('hidden.bs.dropdown', function () {
$(this).css({ 'padding-bottom': '', 'overflow': '' });
});
});
$scope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {