diff --git a/src/Table.jsx b/src/Table.jsx index a27413164..6cf3cdc9e 100644 --- a/src/Table.jsx +++ b/src/Table.jsx @@ -428,11 +428,13 @@ export default class Table extends React.Component { bodyStyle.overflowX = bodyStyle.overflowX || 'auto'; } + const innerBodyStyle = {}; if (scroll.y) { // maxHeight will make fixed-Table scrolling not working // so we only set maxHeight to body-Table here if (fixed) { - bodyStyle.height = bodyStyle.height || scroll.y; + innerBodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; + innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll'; } else { bodyStyle.maxHeight = bodyStyle.maxHeight || scroll.y; } @@ -520,6 +522,7 @@ export default class Table extends React.Component { >