Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

fixedHeader classes when changing absolution/fixed position

未关闭
#52 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
frontend

调研方向

首先,在指定的窗口宽度下复现所报告的表头高度不一致问题,并检查 issue 和链接的论坛讨论中描述的 fixedHeader 行为。确定 component 如何区分固定定位和绝对定位,然后验证所请求的 class 或可见性行为能够正常工作,而无需覆盖整个 function。

由索引模型根据 Issue 内容生成。

描述

Hi,
recently I was experiencing problem, that elements in table th and fixedHeader th had different height at very specific window width... I think because of browser rounding in table th to align elements to 2 rows, but in fixed headers elements aligned to 3 rows...

The solution was quite simple, that when fixedHeader is in absolute position is not needed to be visible... https://datatables.net/forums/discussion/15516/display-only-when-table-header-is-not-visible-top-header

But i dont want to modify the fixedHeader file and overriding whole function because of 3 rows of code is quite an overhead.

But it would be really great I think, if fixedheader will toggle some class to differentiate it is with fixed or absolute position. That will allows to hide fixedHeader, if he is absolutely positioned..

My question is, if is planned some posiibility to for example parametrize fixed header to use class, or be hidden when is absolutely positioned?

主要语言
TypeScript
星标
73
派生
83
平均合并
4 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DataTables/FixedHeader 的其他 Issue

查看 DataTables/FixedHeader 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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