angular-ui/ui-grid

Incorrect header height with filters and pinning

Open

#6,979 创建于 2019年5月15日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (2,496 fork)batch import
grid-corehelp wanted

仓库指标

Star
 (5,395 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Hi all,

The header height is incorrectly computed when:

  • Pinning more than one column left
  • Disabling the filters on all the other columns

image

If pinning only one column left, the behaviour is as expected.

For a year now I have hacked into the CSS classes to set the unfiltered headers height manually, however for reasons unknown to me it now fails on Chrome from time to time.

As much as I could track the differences between what is working and not, the ui-grid-header-canvas class sometimes get set to a fixed height of 29px instead of inherit, which causes the difference. But I couldn't find a way to force it there as the classes are generated.

Reproduced on versions 4.4.11 and 4.7.1

Here's a plunker: http://plnkr.co/edit/gkfdQAjGn1w81EWaIzX8?p=preview

Any help (or even better workaround) appreciated.

贡献者指南