1
0
mirror of https://github.com/bitwarden/web synced 2025-12-10 05:13:40 +00:00

button groups for vault

This commit is contained in:
Kyle Spearrin
2017-03-30 23:49:35 -04:00
parent 11002c2881
commit a678f03284
2 changed files with 43 additions and 69 deletions

View File

@@ -26,24 +26,6 @@ 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) {