未修复高度
This commit is contained in:
@@ -356,7 +356,9 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
|
||||
othis.after(reElem);
|
||||
|
||||
//各级容器
|
||||
|
||||
that.layTool = reElem.find(ELEM_TOOL);
|
||||
that.layBorderBox = reElem;
|
||||
that.layBox = reElem.find(ELEM_BOX);
|
||||
that.layHeader = reElem.find(ELEM_HEADER);
|
||||
that.layMain = reElem.find(ELEM_MAIN);
|
||||
@@ -1336,7 +1338,6 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
|
||||
,options = that.config
|
||||
,height = options.height
|
||||
,bodyHeight;
|
||||
|
||||
if(that.fullHeightGap){
|
||||
height = _WIN.height() - that.fullHeightGap;
|
||||
if(height < 135) height = 135;
|
||||
@@ -1362,6 +1363,12 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
|
||||
if(options.page){
|
||||
bodyHeight -= (that.layPage.outerHeight() || 41);
|
||||
}
|
||||
console.log(bodyHeight,"bodyHeight")
|
||||
let h = bodyHeight - 2 - parseFloat(that.layMain.css('height'));
|
||||
// console.log(h)
|
||||
// that.layBody.css("height", parseFloat(that.layBody.css("height")) + h);
|
||||
// that.layBorderBox.css("height", parseFloat(that.layBorderBox.css("height")) + h);
|
||||
console.log(this.config)
|
||||
|
||||
that.layMain.css('height', bodyHeight - 2);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user