Explorar o código

ensure to calculate #page-wrapper min-heigh according to $('.navbar-header').outerHeight()

Yuki Takei %!s(int64=7) %!d(string=hai) anos
pai
achega
09e9e65da4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/client/js/legacy/thirdparty-js/agile-admin.js

+ 1 - 1
src/client/js/legacy/thirdparty-js/agile-admin.js

@@ -21,7 +21,7 @@ loadSettings();
 //collapses the sidebar on window resize.
 // Sets the min-height of #page-wrapper to window size
 $(window).on("load resize", function () {
-    let topOffset = 60;
+    let topOffset = $('.navbar-header').outerHeight();
     const width = (this.window.innerWidth > 0) ? this.window.innerWidth : this.screen.width;
     if (width < 768) {
         $('div.navbar-collapse').addClass('collapse');