Skip to content
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

custom headerTemplate size does not stay constant #2781

Closed
rinckd opened this issue Feb 15, 2015 · 2 comments
Closed

custom headerTemplate size does not stay constant #2781

rinckd opened this issue Feb 15, 2015 · 2 comments
Assignees
Milestone

Comments

@rinckd
Copy link

rinckd commented Feb 15, 2015

I would like to create two header rows by using a custom headerTemplate. This is how it was done in ng-grid 2.0: http://plnkr.co/edit/i261iOpP2PdfGgg3C6ng?p=preview

Migrating to ui-grid, it appears to work at first, but if you click on any of the sorting columns the header size increases. Is there a work around for this? Or is my headerTemplate wrong?
Here's my plunker, click on any column header and the header changes size:
http://plnkr.co/edit/27PuMj?p=info

@c0bra
Copy link
Contributor

c0bra commented Feb 16, 2015

This happens because header cell heights are calculated based off the header height and the calculation expects the only thing in the header to be the cells, which is probably the wrong thing to do.

I am looking into a fix.

@c0bra c0bra self-assigned this Feb 16, 2015
@c0bra c0bra added this to the 3.0 milestone Feb 16, 2015
@c0bra c0bra closed this as completed in fee00cd Feb 16, 2015
@rinckd
Copy link
Author

rinckd commented Feb 17, 2015

Thanks. I did learn that if I add this .css it fixes my issue. Not sure if that helps you with an overall fix.

ui-grid-header-cell {
height: 30px !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants