mirror of https://github.com/ColorlibHQ/AdminLTE
Fix issue #1191
parent
8a7b80c64c
commit
6e2f5b0708
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
min-height: 100%;
|
height: 100%;
|
||||||
.layout-boxed & {
|
.layout-boxed & {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
@ -22,9 +22,10 @@ body {
|
||||||
/* Layout */
|
/* Layout */
|
||||||
.wrapper {
|
.wrapper {
|
||||||
.clearfix();
|
.clearfix();
|
||||||
min-height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
.layout-boxed & {
|
.layout-boxed & {
|
||||||
max-width: 1250px;
|
max-width: 1250px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
*/
|
*/
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
min-height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.layout-boxed html,
|
.layout-boxed html,
|
||||||
.layout-boxed body {
|
.layout-boxed body {
|
||||||
|
@ -28,9 +28,10 @@ body {
|
||||||
}
|
}
|
||||||
/* Layout */
|
/* Layout */
|
||||||
.wrapper {
|
.wrapper {
|
||||||
min-height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
.wrapper:before,
|
.wrapper:before,
|
||||||
.wrapper:after {
|
.wrapper:after {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -242,12 +242,15 @@ function _init() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
_this.fix();
|
_this.fix();
|
||||||
_this.fixSidebar();
|
_this.fixSidebar();
|
||||||
|
$('body, html, .wrapper').css('height', 'auto');
|
||||||
$(window, ".wrapper").resize(function () {
|
$(window, ".wrapper").resize(function () {
|
||||||
_this.fix();
|
_this.fix();
|
||||||
_this.fixSidebar();
|
_this.fixSidebar();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fix: function () {
|
fix: function () {
|
||||||
|
// Remove overflow from .wrapper if layout-boxed exists
|
||||||
|
$(".layout-boxed > .wrapper").css('overflow', 'hidden');
|
||||||
//Get window height and the wrapper height
|
//Get window height and the wrapper height
|
||||||
var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
|
var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
|
||||||
var window_height = $(window).height();
|
var window_height = $(window).height();
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue