Skip to content

Commit

Permalink
Fixed height offset for logout warning #3264
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Aug 1, 2024
1 parent f303eec commit 72e96bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grails-app/assets/javascripts/base-bs4.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function setupTimeoutWarning(options) {

function showBanner(banner) {
banner.show();
var height = banner.height();
$(document).css("margin-top", height);
var height = banner.outerHeight();
$('body').css("margin-top", height);
}

function hideBanner(banner) {
banner.hide();
$(document).css("margin-top", "0");
$('body').css("margin-top", "0");
}

function showTimeoutBanner() {
Expand Down

0 comments on commit 72e96bd

Please sign in to comment.