🐛 Fix Table overflow layout (#21905)

unscrollable table should not have overflow style

close #21879 by revert #20705
This commit is contained in:
偏右 2020-03-05 19:07:55 +08:00 committed by GitHub
parent 4b0effbc0e
commit 164a4ac3b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -4939,7 +4939,7 @@ exports[`renders ./components/table/demo/fixed-columns.md correctly 1`] = `
> >
<div <div
class="ant-table-content" class="ant-table-content"
style="overflow-x:scroll" style="overflow-x:scroll;overflow-y:hidden"
> >
<table <table
style="width:1300px;min-width:100%;table-layout:fixed" style="width:1300px;min-width:100%;table-layout:fixed"

View File

@ -589,11 +589,6 @@
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%); box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
} }
} }
// Fix for chrome overflow show the scrollbar
&:not(&-fixed-header) &-content {
overflow-y: hidden;
}
} }
@media all and (-ms-high-contrast: none) { @media all and (-ms-high-contrast: none) {

View File

@ -123,7 +123,7 @@
"rc-slider": "~9.2.1", "rc-slider": "~9.2.1",
"rc-steps": "~3.5.0", "rc-steps": "~3.5.0",
"rc-switch": "~1.9.0", "rc-switch": "~1.9.0",
"rc-table": "~7.1.0", "rc-table": "~7.2.0",
"rc-tabs": "~10.0.0", "rc-tabs": "~10.0.0",
"rc-tooltip": "~4.0.0", "rc-tooltip": "~4.0.0",
"rc-tree": "~3.0.0", "rc-tree": "~3.0.0",