fix(virtualization): measure natural rows and align viewport geometry

This commit is contained in:
maoyingjie
2026-10-29 17:13:12 +08:00
parent 9f7eb1fa8d
commit 5a00e25a25
18 changed files with 770 additions and 257 deletions
+11
View File
@@ -275,6 +275,17 @@
* (UA bold/center neutralised) while caller text-align/font-weight keep
* cascading into every cell — scoping the reset to `th` preserves ancestor
* inheritance for the regular td cells. */
/* Explicit virtual row heights must not be enlarged by native cell padding.
Keep the original padding on an inset content box, with native th/td intact. */
.hv-table__cell[data-fixed-height] {
position: relative;
padding: 0;
overflow: clip;
}
.hv-table__fixed-cell-content {
@apply absolute inset-x-0 top-1/2 -translate-y-1/2 px-4 py-3;
}
th.hv-table__cell {
text-align: inherit;
font-weight: inherit;