mirror of https://github.com/ColorlibHQ/AdminLTE
added js option for content height fixed
parent
96dc774be3
commit
cc8a2d7e51
|
@ -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 = {
|
||||
|
@ -109,6 +110,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'))
|
||||
}
|
||||
}
|
||||
|
||||
// Private
|
||||
|
|
|
@ -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
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue