mirror of https://github.com/ColorlibHQ/AdminLTE
fixed content height calc with less sidebar content (#2332)
parent
302c85fb47
commit
29a3ba3953
|
@ -77,7 +77,11 @@ const Layout = (($) => {
|
|||
|
||||
const max = this._max(heights)
|
||||
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header)
|
||||
if (max == heights.window) {
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header - heights.footer)
|
||||
} else {
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header)
|
||||
}
|
||||
|
||||
if ($('body').hasClass(ClassName.LAYOUT_FIXED)) {
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header - heights.footer)
|
||||
|
|
|
@ -344,7 +344,11 @@
|
|||
|
||||
var max = this._max(heights);
|
||||
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header);
|
||||
if (max == heights.window) {
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header - heights.footer);
|
||||
} else {
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header);
|
||||
}
|
||||
|
||||
if ($('body').hasClass(ClassName.LAYOUT_FIXED)) {
|
||||
$(Selector.CONTENT).css('min-height', max - heights.header - heights.footer);
|
||||
|
|
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