[Bug] 最后一列固定时, dropdown显示位置有问题
@Rui-Sun is already working on this.
Since Mar 12, 2025.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
Version
1.17.1
Link to Minimal Reproduction
https://visactor.io/vtable/demo-react/component/menu
Steps to Reproduce
代码如下:
const records = new Array(1000).fill(['John', 18, 'male', '🏀']);
const root = ReactDom.createRoot(document.getElementById(CONTAINER_ID));
root.render(
<ReactVTable.ListTable
records={records}
height={'500px'}
rightFrozenColCount={1}
onDropdownMenuClick={args => {
console.log('onDropdownMenuClick', args);
}}
<ReactVTable.ListColumn field={'0'} title={'name'} />
<ReactVTable.ListColumn field={'1'} title={'age'} />
<ReactVTable.ListColumn field={'2'} title={'gender'} />
<ReactVTable.ListColumn field={'3'} title={'hobby'} />
<ReactVTable.Menu
renderMode={'html'}
defaultHeaderMenuItems={['header menu 1', 'header menu 2']}
contextMenuItems={['context menu 1', 'context menu 2']}
/>
</ReactVTable.ListTable>
);
// release openinula instance, do not copy
window.customRelease = () => {
root.unmount();
};
点击最后一列表头下拉icon, dropdown的位置不对
Current Behavior
表格未撑满内内容区时, 最后一列为固定列时, dropdown显示位置有问题
Expected Behavior
dropdown显示位置正常
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.