Browse Source

Change another approach to fix #4637

avoid issues like #4750 and #4753 caused by old way
pull/4756/head
afc163 8 years ago
parent
commit
fb421f10e0
  1. 21
      components/table/style/index.less

21
components/table/style/index.less

@ -485,12 +485,29 @@
overflow: scroll;
}
// Fix https://github.com/ant-design/ant-design/issues/4637
// avoid column misalign in #4750 and #4753
&-fixed-header &-scroll {
position: relative;
border-radius: @border-radius-base @border-radius-base 0 0;
&:after {
background: @table-head-background-color;
position: absolute;
content: '0';
width: 18px;
right: 0;
top: 0;
padding: 16px 0;
user-select: none;
color: transparent;
border-radius: 0 @border-radius-base 0 0;
}
}
&-fixed-header &-scroll &-header {
overflow: scroll;
padding-bottom: 20px;
margin-bottom: -20px;
margin-right: -18px;
padding-right: 18px;
}
/* fix firefox scrollbar bug */

Loading…
Cancel
Save