Skip to content

Commit

Permalink
MID-7604, MID-7594: fix css style 'padding-top' of content by height …
Browse files Browse the repository at this point in the history
…of navigation
  • Loading branch information
skublik committed Jan 25, 2022
1 parent ce42d5b commit 6c1044f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gui/admin-gui/src/main/resources/static/js/midpoint-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,3 +436,11 @@ jQuery(function ($) {
}
});
});

jQuery(function ($) {
var content = $(".content-wrapper");
var navigation = document.querySelector('[role="navigation"]');
if (content.length != 0 && navigation !== null) {
content.css( "padding-top", navigation.clientHeight);
}
});

0 comments on commit 6c1044f

Please sign in to comment.