-
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
ui-grid height not working as expected #2500
Comments
The maxVisibleRowCount option has been recently removed, as you noted it did nothing. I don't think the grid dynamically grows in height, it sets it's height once based on some rather obscure logic. |
A better way might be to simply have a grid option properties that allow the user to set either a height or a max-height for the viewport. That would cover both use cases where either the user wants a fixed height to start with or the user wants the grid to grow to a max-height after which scrolling will be required. The reason i need the latter is that currently with the fixed height if you only have one row but a height that can accomodate 10 the column separators don't extend down to the bottom making the grid look funky. |
How can we get a full height grid? |
This seems to work:
|
style="height: {{gridOptions.data.length*30}}px" not working for IE? any suggestions pls |
Sounds like another flavour of #3031, linking to that so they're tied together in case someone decides to implement it. |
@Karttin, do use ng-style instead: I have added the 32 for the header as well. Cheers. |
it is not showing complete data in the grid. Please suggest to adjust height auto on the basis of number of Rows. |
I was under the impression that |
http://brianhann.com/make-ui-grid-take-up-the-whole-page/ |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. If you believe that this is still an issue in the latest version, feel free to re-open it. Thank you for your contributions. |
I create a ui-grid with ui-grid-auto-resize without any height specified on the div and the following grid options set:
maxVisibleRowCount: 8,
minRowsToShow: 1
I would expect it to show one row regardless of the list count and then grow until it reaches 8 after which the scrollbars will be used to see the other rows. Instead the height of the ui-grid doesn't change (only 1 shown) and you have to scroll to see anything else. It seems like minRowsToShow is acting like maxRowsToShow and the grid doesn't grow to show the maxVisibleRowCount. If i remove minRowsToShow and set maxVisibleRowCount = 3 it shows probably like 10 rows which makes no sense. Lost and looking for any help. As an aside the gridUtil.elementHeight method is empty without a return?
The text was updated successfully, but these errors were encountered: