AllenFang / AllenFang/react-bootstrap-table

maxHeight property makes columns irresponsive to resize

未关闭
#1,105 8 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement in progress
主要语言
JavaScript
星标
2.2k
派生
761
PR 合并指标
30 天内没有已合并 PR

描述

When the table is given a maxHeight, and columns doesn't have any width set; columns are responsive to resize up, but irresponsive to resize down. Also happens when columns have width but they don't force a horizontal scroll bar.

(resize up -> increasing width of window, resize down -> decreasing width of window)

This simplified code piece recreates the issue for me.

```
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import '../../node_modules/react-bootstrap-table/dist/react-bootstrap-table-all.min.css';

const products = [
{id:'0', name:'name0', price:'price0'},
{id:'1', name:'name1', price:'price1'},
{id:'2', name:'name2', price:'price2'},
{id:'3', name:'name3', price:'price3'},
{id:'4', name:'name4', price:'price4'},
{id:'5', name:'name5', price:'price5'},
{id:'6', name:'name6', price:'price6'},
{id:'7', name:'name7', price:'price7'},
{id:'8', name:'name8', price:'price8'}
];

export default class BTable extends React.Component {
render() {
return (

ID
Name
Price

);
}
}
```

1. Start with a half size window
2. First resize up
3. Then resize down too see the effect better.
I have v3.0.0

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。