|
|
@ -76,13 +76,14 @@ BI.TdLayout = BI.inherit(BI.Layout, { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var height = o.rowSize[idx] === "" ? "" : (o.rowSize[idx] < 1 ? ((o.rowSize[idx] * 100).toFixed(1) + "%") : o.rowSize[idx]); |
|
|
|
var height = o.rowSize[idx] === "" ? "" : (o.rowSize[idx] < 1 ? ((o.rowSize[idx] * 100).toFixed(1) + "%") : o.rowSize[idx]); |
|
|
|
|
|
|
|
var rowHeight = BI.isNumber(o.rowSize[idx]) ? (o.rowSize[idx] <= 1 ? height : height / BI.pixRatio + BI.pixUnit) : height; |
|
|
|
var tr = BI._lazyCreateWidget({ |
|
|
|
var tr = BI._lazyCreateWidget({ |
|
|
|
type: "bi.default", |
|
|
|
type: "bi.default", |
|
|
|
tagName: "tr", |
|
|
|
tagName: "tr", |
|
|
|
height: height, |
|
|
|
height: height, |
|
|
|
css: { |
|
|
|
css: { |
|
|
|
"max-height": BI.isNumber(o.rowSize[idx]) ? (o.rowSize[idx] <= 1 ? height : height / BI.pixRatio + BI.pixUnit) : height |
|
|
|
"max-height": rowHeight, |
|
|
|
|
|
|
|
"min-height": rowHeight |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -132,7 +133,11 @@ BI.TdLayout = BI.inherit(BI.Layout, { |
|
|
|
// 2、不能给多个td设置最大宽度,这样只会平分宽度
|
|
|
|
// 2、不能给多个td设置最大宽度,这样只会平分宽度
|
|
|
|
// 3、多百分比宽度就算了
|
|
|
|
// 3、多百分比宽度就算了
|
|
|
|
if (columnSize > 0) { |
|
|
|
if (columnSize > 0) { |
|
|
|
td.element.css({"max-width": columnSize < 1 ? width : width / BI.pixRatio + BI.pixUnit}); |
|
|
|
columnSize = columnSize < 1 ? width : width / BI.pixRatio + BI.pixUnit; |
|
|
|
|
|
|
|
td.element.css({ |
|
|
|
|
|
|
|
"max-width": columnSize, |
|
|
|
|
|
|
|
"min-width": columnSize |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
td.element.css({ |
|
|
|
td.element.css({ |
|
|
|
position: "relative", |
|
|
|
position: "relative", |
|
|
|