File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -428,11 +428,13 @@ export default class Table extends React.Component {
428
428
bodyStyle . overflowX = bodyStyle . overflowX || 'auto' ;
429
429
}
430
430
431
+ const innerBodyStyle = { } ;
431
432
if ( scroll . y ) {
432
433
// maxHeight will make fixed-Table scrolling not working
433
434
// so we only set maxHeight to body-Table here
434
435
if ( fixed ) {
435
- bodyStyle . height = bodyStyle . height || scroll . y ;
436
+ innerBodyStyle . maxHeight = bodyStyle . maxHeight || scroll . y ;
437
+ innerBodyStyle . overflowY = bodyStyle . overflowY || 'scroll' ;
436
438
} else {
437
439
bodyStyle . maxHeight = bodyStyle . maxHeight || scroll . y ;
438
440
}
@@ -520,6 +522,7 @@ export default class Table extends React.Component {
520
522
>
521
523
< div
522
524
className = { `${ prefixCls } -body-inner` }
525
+ style = { innerBodyStyle }
523
526
ref = { refName }
524
527
onMouseOver = { this . detectScrollTarget }
525
528
onTouchStart = { this . detectScrollTarget }
You can’t perform that action at this time.
0 commit comments