小编Pav*_*hov的帖子

How to place Ant Design Table in parent container bounds under React?

I develop a SPA application and I wish place table in parent element bounds but I can't set explicit height. I can set scroll.y of table body but then result total height is large by header height. I can't get header height to calculate total needed height. How I may place table into parent bounds?

<div style={{ width: '100vw', height: '100vh'}}>
<Table scroll={{ y: '100%' }} style={{ width: '100%', height: '100%' }}  pagination={false} columns={columns} dataSource={data} />
Run Code Online (Sandbox Code Playgroud)

html-table parent bounds reactjs antd

7
推荐指数
2
解决办法
9595
查看次数

标签 统计

antd ×1

bounds ×1

html-table ×1

parent ×1

reactjs ×1