Merge pull request #2606 from aignatov-bio/ai-sci-4621-resize-simple-table-header-size-on-sidebar-colapse

Resize simple table header on sidebar collapse [SCI-4621]
This commit is contained in:
aignatov-bio 2020-05-27 09:35:40 +02:00 committed by GitHub
commit 7b36392a19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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() {