fix: 火狐浏览器,固定表格跟随resize事件产生的滚动条隐藏

This commit is contained in:
gx 2021-04-22 21:19:44 +08:00
parent 74737239c3
commit 3b5ae93b7a
3 changed files with 13 additions and 1 deletions

View File

@ -1288,6 +1288,12 @@ var Table = function (_Component) {
} else {
if (this.computeWidth > this.contentDomWidth) {
bodyStyle.marginBottom = '-' + scrollbarWidth + 'px';
var userAgent = navigator.userAgent; // 火狐浏览器固定表格跟随resize事件产生的滚动条隐藏
var isFF = userAgent.indexOf("Firefox") > -1;
if (isFF) {
// innerBodyStyle.overflowX = 'hidden';
delete innerBodyStyle.overflowX;
}
}
}
} else {

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "2.3.15-beta.23",
"version": "2.3.15-beta.24",
"description": "Table ui component for react",
"keywords": [
"react",

View File

@ -1086,6 +1086,12 @@ class Table extends Component {
}else{
if (this.computeWidth > this.contentDomWidth) {
bodyStyle.marginBottom = '-' + scrollbarWidth + 'px';
let userAgent = navigator.userAgent; // 火狐浏览器固定表格跟随resize事件产生的滚动条隐藏
let isFF = userAgent.indexOf("Firefox") > -1;
if (isFF) {
// innerBodyStyle.overflowX = 'hidden';
delete innerBodyStyle.overflowX
}
}
}