added js option for content height fixed
This commit is contained in:
@@ -33,11 +33,12 @@ const Layout = (($) => {
|
||||
}
|
||||
|
||||
const ClassName = {
|
||||
HOLD : 'hold-transition',
|
||||
SIDEBAR : 'main-sidebar',
|
||||
LAYOUT_FIXED: 'layout-fixed',
|
||||
NAVBAR_FIXED: 'layout-navbar-fixed',
|
||||
FOOTER_FIXED: 'layout-footer-fixed',
|
||||
HOLD : 'hold-transition',
|
||||
SIDEBAR : 'main-sidebar',
|
||||
CONTENT_FIXED: 'content-fixed',
|
||||
LAYOUT_FIXED : 'layout-fixed',
|
||||
NAVBAR_FIXED : 'layout-navbar-fixed',
|
||||
FOOTER_FIXED : 'layout-footer-fixed',
|
||||
}
|
||||
|
||||
const Default = {
|
||||
@@ -108,6 +109,9 @@ const Layout = (($) => {
|
||||
}
|
||||
if ($('body').hasClass(ClassName.FOOTER_FIXED)) {
|
||||
$(Selector.CONTENT).css('margin-bottom', heights.footer)
|
||||
}
|
||||
if ($('body').hasClass(ClassName.CONTENT_FIXED)) {
|
||||
$(Selector.CONTENT).css('height', $(Selector.CONTENT).css('min-height'))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
4
dist/js/adminlte.js
vendored
4
dist/js/adminlte.js
vendored
@@ -202,6 +202,7 @@ var Layout = function ($) {
|
||||
var ClassName = {
|
||||
HOLD: 'hold-transition',
|
||||
SIDEBAR: 'main-sidebar',
|
||||
CONTENT_FIXED: 'content-fixed',
|
||||
LAYOUT_FIXED: 'layout-fixed',
|
||||
NAVBAR_FIXED: 'layout-navbar-fixed',
|
||||
FOOTER_FIXED: 'layout-footer-fixed'
|
||||
@@ -277,6 +278,9 @@ var Layout = function ($) {
|
||||
if ($('body').hasClass(ClassName.FOOTER_FIXED)) {
|
||||
$(Selector.CONTENT).css('margin-bottom', heights.footer);
|
||||
}
|
||||
if ($('body').hasClass(ClassName.CONTENT_FIXED)) {
|
||||
$(Selector.CONTENT).css('height', $(Selector.CONTENT).css('min-height'));
|
||||
}
|
||||
};
|
||||
|
||||
// Private
|
||||
|
||||
2
dist/js/adminlte.js.map
vendored
2
dist/js/adminlte.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/js/adminlte.min.js
vendored
2
dist/js/adminlte.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/adminlte.min.js.map
vendored
2
dist/js/adminlte.min.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user