fix: 火狐浏览器,固定表格跟随resize事件产生的滚动条隐藏
This commit is contained in:
parent
74737239c3
commit
3b5ae93b7a
|
@ -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 {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue