-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[BUG] headerRowHeight isn't working #3665
Comments
@yccteam see #2822. That section of the docs needs to be removed. Setting headerRowHeight in the grid options hasn't worked all the way back to RC.12. You can set the header height by giving your header row cells a fixed height, as in this plunker: http://plnkr.co/edit/WqBAed2H4vELJwtdMlyM?p=preview Does that make sense? I can add a tutorial for this, or update the custom header one with the needed info. Also
|
I see - Regarding using css for the row height - fine by me :) |
With your plunker the header height is coming out as 0 when I click the "Toggle" button. Are you not seeing that? |
Strange... It shows correctly now. |
One more thing, if we're at it - when I set: |
Hmm, the grid must resize the header to fit the contents somehow. Any value less than 30px gets reset to 30, looks like. You could use |
Now I see where my problems stem from. I'm using an unstable version that's about a month old. I see this method works fine: http://plnkr.co/edit/BDTschDHPCt88casKbHb?p=preview |
I've just tried playing with
headerRowHeight
, with no success - the height remains the same.There's also no example for this in the tutorial, but it does appear in the documentation: http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions
In addition, I'm checking
showHeader
- when checkingheaderRowHeight
, it stays 30 no matter what - even when I setshowHeader
to false (which is supposed to setheaderRowHeight
to 0...).You can see the
headerRowHeight
value in the console after clicking the toggle button. It's always 30.Here's the plnkr:
http://plnkr.co/edit/CPzoOkEQ3VnK4oa6a5pA?p=preview
The text was updated successfully, but these errors were encountered: