-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.x明细表拖拽行高受rowCell的padding影响 #2905
Comments
感觉是这里的问题,在拖拽结束后,没有区分明细表还是透视表,直接将cell高度减去了padding。 S2/packages/s2-core/src/interaction/row-column-resize.ts Lines 296 to 299 in 11bb92c
然后在明细表示使用时,获取cell高度,使用的就是拖拽更新后的高度,导致每次都会减去paddingTop和paddingBottom的高度 S2/packages/s2-core/src/facet/frozen-facet.ts Lines 708 to 712 in 11bb92c
|
可以尝试来个 PR. |
fix: 修复表格拖拽行高受rowCell影响问题 Co-authored-by: liwenbo <[email protected]>
🎉 This issue has been resolved in version @antv/s2-v1.56.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🏷 Version
Sheet Type
🖋 Description
明细表当theme设置了rowCell的padding样式之后,每次拖拽行高,都会自动减去padding中top和bottom的高度,具体表现如下:
Sep-20-2024.15-16-57.mp4
⌨️ Code Snapshots
在链接中使用以下代码即可复现:https://s2-v1.antv.antgroup.com/examples/basic/table/#table
The text was updated successfully, but these errors were encountered: