Resize simple table header on sidebar collapse

This commit is contained in:
aignatov-bio 2020-05-25 16:21:28 +02:00
parent 384ec40c4e
commit f86b71144d
2 changed files with 13 additions and 0 deletions

View file

@ -290,6 +290,12 @@ var MyModuleRepositories = (function() {
repositoryContainer.html(repositoryTemplate);
renderSimpleTable(repositoryTemplate);
});
$('.navbar-secondary').on('sideBar::shown sideBar::hidden', function() {
if (SIMPLE_TABLE) {
SIMPLE_TABLE.columns.adjust();
}
});
}
function initVersionsStatusCheck() {

View file

@ -26,11 +26,18 @@
function toggle() {
var btn = $('#sidebar-arrow');
var sideBarEvent;
if (btn.is('[data-shown]')) {
hide();
sideBarEvent = 'sideBar::hidden'
} else {
show();
sideBarEvent = 'sideBar::shown'
}
$('.navbar-secondary').one("transitionend",function(event) {
$('.navbar-secondary').trigger(sideBarEvent);
})
}
function isShown() {