表格添加纵向滚动条时,scroll设置修改
This commit is contained in:
parent
64cbe951b9
commit
12b37e145d
|
@ -11300,11 +11300,11 @@
|
||||||
if (fixed) {
|
if (fixed) {
|
||||||
// bodyStyle.height = bodyStyle.height || scroll.y;
|
// bodyStyle.height = bodyStyle.height || scroll.y;
|
||||||
innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
||||||
innerBodyStyle.overflowY = bodyStyle.overflowY || 'auto';
|
innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
|
||||||
} else {
|
} else {
|
||||||
bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
||||||
}
|
}
|
||||||
bodyStyle.overflowY = bodyStyle.overflowY || 'auto';
|
bodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
|
||||||
useFixedHeader = true;
|
useFixedHeader = true;
|
||||||
|
|
||||||
// Add negative margin bottom for scroll bar overflow bug
|
// Add negative margin bottom for scroll bar overflow bug
|
||||||
|
@ -59422,7 +59422,7 @@
|
||||||
_this2.setState({
|
_this2.setState({
|
||||||
columns: columns
|
columns: columns
|
||||||
});
|
});
|
||||||
afterFilter(_this2.state.columns, _this2.state.columns);
|
_this2.props.afterFilter(_this2.state.columns, _this2.state.columns);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getCloumnsScroll = function (columns) {
|
this.getCloumnsScroll = function (columns) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -637,11 +637,11 @@ class Table extends Component {
|
||||||
if (fixed) {
|
if (fixed) {
|
||||||
// bodyStyle.height = bodyStyle.height || scroll.y;
|
// bodyStyle.height = bodyStyle.height || scroll.y;
|
||||||
innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
||||||
innerBodyStyle.overflowY = bodyStyle.overflowY || 'auto';
|
innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
|
||||||
} else {
|
} else {
|
||||||
bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y;
|
||||||
}
|
}
|
||||||
bodyStyle.overflowY = bodyStyle.overflowY || 'auto';
|
bodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
|
||||||
useFixedHeader = true;
|
useFixedHeader = true;
|
||||||
|
|
||||||
// Add negative margin bottom for scroll bar overflow bug
|
// Add negative margin bottom for scroll bar overflow bug
|
||||||
|
|
Loading…
Reference in New Issue