From fb421f10e079dd8b9db3fbffcc2ca2351f5e3b28 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 3 Feb 2017 18:57:56 +0800 Subject: [PATCH] Change another approach to fix #4637 avoid issues like #4750 and #4753 caused by old way --- components/table/style/index.less | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/components/table/style/index.less b/components/table/style/index.less index c33d65733..9691759a6 100644 --- a/components/table/style/index.less +++ b/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 */