angular-ui/ui-grid

Incorrect header height with filters and pinning

Open

#6.979 geöffnet am 15. Mai 2019

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.496 Forks)batch import
grid-corehelp wanted

Repository-Metriken

Stars
 (5.395 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide